External Exam Download Resources Web Applications Games Recycle Bin

HTML elements

<!DOCTYPE html>
<html>
  <head>
      <title>HTML elements</title>
  </head>
  <body>
      <h1>Heading 1</h1> 
      <p>This is a paragraph.</p>
      <br>
      <img src="https://via.placeholder.com/350x150">
      <br>
      horizontal rule:
      <hr>
      <br> <!-- this is a code comment, it wont render -->
      ordered list:
      <ol>
          <li>item 1</li>
          <li>item 2</li>
      </ol>
      unordered list:
      <ul>
          <li>item 3</li>
          <li>item 4
              <ul>
                <li>item 5</li>
              </ul>
          </li>
      </ul>
  </body>
</html>

The M in HTML stands for markup. markup refers to using 'tags' to define page layout, as well as elements within a page: