Html Section Vs Article
It makes sense to use the section element to provide extra context.
Html section vs article. A section is a thematic grouping of content typically with a heading a web page could normally be split into sections for introduction content and contact information. But they have each different symantic. Now that you ve decided that the content to be enclosed is related let s take a look at the section element.
Before semicolon 46 028 views. Html section element section defines a section of a document to indicate a related grouping of semantic meaning. Why do semantics matter.
Html article element article defines a piece of self contained content. The section element defines a section in a document. It does not refer to the main content alone and can be used for comments and widgets.
A11ycasts 08 duration. Html elements section and article are all block elements. No wrap and why is css gray a darker color than darkgray.
The html5 specification currently states that. The html section element represents a standalone section which doesn t have a more specific semantic element to represent it contained within an html document. This is one of the eternal mysteries of web development up there with why is it white space.
A few days ago i was having a chat with some friends one of whom asked me the difference between article and section in html. A section in this context is a thematic grouping of content typically with a heading. Html5 was a major stepping stone for the concept of semantic code.