Answer the question
In order to leave comments, you need to log in
Is it valid/logical/semantic to use section inside a form?
Actually, the topic is actually the whole point of the issue.
But I'll try to describe it in more detail:
<fieldset>
, <legend>
but something stops me ... they are somehow old and dusty. In vain?<section>
, it seems beautiful and logical. Dissuade?<form>
<section>
<h2>Title</h2>
<label for="name">Name</label>
<input id="name" type="text">
</section>
</form>
<form>
inside <section>
- this is understandable just right. Answer the question
In order to leave comments, you need to log in
The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading (h1-h6 element) as a child of the section element.
<fieldset>и <legend>
Why are they old? where did you get this from? - www.tutorialspoint.com/html5/html5_deprecated_tags.htm - here are the old elements for you.
I can’t even imagine what kind of document structure you have O_O
but about the question - who is stopping you from inserting a piece of code into the validator and checking it?
Valid, but it's more logical to put the form in the section
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question