Is it possible to group form elements in "p"?
Say I have this code
<form action="#" method="get">
<p>
<label for="name">Name:</label>
<input type="text" name="name" />
</p>
<p>
<input type="submit" />
</p>
</form>
Is semantics subtle for grouping elements with p ? Because my teacher (again .. I know ..: P) told me that p should be used only for the paragraph and that I should use the div , but since I can see, p is used a lot and almost everywhere.
The last opportunity I can think of is that <br />which, in my opinion, is the worst way.
So which one is best to use
- wrap
<div> - wrap
<p> <br />at the end