HTML section and div tag

Since we plan to write our own Front-End Framework using HTML5 and CSS3, but the discussion with my team is whether to use the tag sectionas a cover wrapper or not, because W3.org has not yet approved the section tag .

But, when I went through a few debates, I have not yet received the correct conclusion about the convenience of the tag section, I hope that I will deal with this topic correctly here!

Thank you and welcome

+4
source share
2 answers

, "common use make right", , i . , . section, W3C, . WordPress , WordPress .

, , , - , - , . , , W3C, .

A div , , , section. , - , section, div .

, SO : SO use of section tag

, - w3c W3C example of section use

+3

div!

, , .. .

div, .

, - , , , ... div , .

<header>
  <h1> ... </h1>
</header>

<section>
  <h2>  ...  </h2>
  <div>
     <form>
          ...
     </form>
  </div>
</section>

<footer>
  <div>
     <p> ... </p>
  </div>
</footer>
0

All Articles