HTML Layout Elements
HTML has several semantic elements that define the different parts of a web page:
HTML5 Semantic Elements
- Defines a header for a document or a section
- Defines a set of navigation links
- Defines a section in a document
- Defines independent, self-contained content
- Defines content aside from the content (like a sidebar)
- Defines a footer for a document or a section
- Defines additional details that the user can open and close on demand
- Defines a heading for the element
You can read more about semantic elements in our HTML Semantics chapter.
HTML Layout Techniques
There are four different techniques to create multicolumn layouts. Each technique has its pros and cons:
CSS framework
CSS float property
CSS flexbox
CSS grid