Div can be used for smaller things, such as a container for presentation, or where there is no semantic idea to be communicated. The section element is appropriate only if the contents would be listed explicitly in the document’s outline. HTML5 section, aside, header, nav, footer elements – Not as obvious as they sound. Basically, HTML is a text document with tags. This includes things like news articles, blog posts, or user comments. However, I have some issues with
and
usage. Includes complete working examples. It’s a chunk of related content, like a subsection of a long article, a major part of the page (eg the news section on the homepage), or a page in a webapp’s tabbed interface. For more information on article, header, footer, and more, see the article about sectioning. They key difference between them is the space.A space in a CSS selector has very special meaning. Among others, the
and
elements were introduced as a way