Advertisement
- By default, block elements are the same height and width as the content container between their tags; inline elements span the entire width of its container.
- By default, block elements span the entire width of its container; inline elements are the same height and width as the content contained between their tags.
- A <nav> element is an example of an inline element. <header> is an example of a block element.
- A <span> is an example of a block element. <div> is an example of an inline element.
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.