Styling

Notice in the code below that the use of the <div> element creates blocks that appear on a new line (2 images and a heading).

Block elements appear on their own block on a new line. Other examples of block elements include:

  • Images <img>
  • Headings <h1>-<h6>
  • Paragraphs <p>

Each of these, unless told otherwise through styling, appears on a new line in HTML pages.