I'm currently using p tags to surround form groupings (e.g. label, input and error message)...
p tags are what I've used for years but I'm having a bit of an issue as p tags cannot contains divs etc... so I'm considering using the 'section' tag to break up the form "sections" :)...
I'm look for some feedback if u guys think the use of this tag in this context is semantically/functionally appropriate... Forms for me as a web dev are 90% of my day so Really appreciate your thoughts and feedback :)
FYI (though inconsequential) I'm using Laravel Form for the examples!
Before
<p>
<label>First Name</label>
<input type="text" name="first_name" value="{{ Form::form_value('first_name', $user) }}">
<span class="error_message">{{ $errors->first('first_name') }}</span>
</p>
<p>
<label>Surame</label>
<input type="text" name="surname" value="{{ Form::form_value('surname', $user) }}">
<span class="error_message">{{ $errors->first('surname') }}</span>
</p>
After
<section>
<label>First Name</label>
<input type="text" name="first_name" value="{{ Form::form_value('first_name', $user) }}">
<span class="error_message">{{ $errors->first('first_name') }}</span>
</section>
<section>
<label>Surame</label>
<input type="text" name="surname" value="{{ Form::form_value('surname', $user) }}">
<span class="error_message">{{ $errors->first('surname') }}</span>
</section>