tags are available in pairs, an opening tag and a closing tag:
The most important thing to note about
does when looking at the tag (unlike
If overused, it can cause accessibility issues for screen readers. Make sure to use
container is a block level element. It occupies the entire width of the window unless it is controlled by the developer through CSS or inline styling. Also, there is a line break before and after, unless the display property is changed to some sort of inline or flex value.
In terms of layout, divs are quite flexible. They can be nested one inside the other. That said,
tag within a
tag. Additionally, there are some strange anomalies when inserting