use of SECTION in Html 5
-
I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks
-
I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks
Quoting from w3schools.com[^]
The
tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.
This link also explains it very well - http://www.w3.org/wiki/HTML/Elements/section[^] Hope this helps!
..Go Green..
-
Quoting from w3schools.com[^]
The
tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.
This link also explains it very well - http://www.w3.org/wiki/HTML/Elements/section[^] Hope this helps!
..Go Green..
The section element is one of the new HTML5 elements, like header, footer, and other semantics. As far as I know, they work quite the same as a div, only the div is a more generic way of dividing content. The section is used for a specific group of content.
If your co-developer is using section everywhere, he is using it wrong and he has to use the div element. It is possible to use more section-elements.
With the use of section, the developer has to call it only once in the CSS-file with 'section{}'. Kinda like a class attribute, but used for specific areas on the web page. -
I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks
I avoid usage of semantic elements that were introduced in HTML5(like section) (except article, aside) because I mostly work with web apps that are compatible with older browsers (IE8, Atommic 1.0 etc.)