Rendering Forms in a Paragraph
Posted by Christopher Wojno Mon, 14 Jul 2008 19:16:00 GMT
Here’s an example:
<p>If you're looking for other confidential search parameters, click <form action="secret_search" method="post"> <input type="hidden" value="my secret search parameters"/> <input type="submit" value="here"/> </form> !</p>
You can’t.
The P element represents a paragraph. It cannot contain block-level elements (including P itself).HTML4.0 Reference
That means you’re stuck with a line-break if you want to have buttons with form data in your paragraphs.
