Home

Tag omission in HTML

Did you know this is valid HTML?

<!DOCTYPE html>
<title>My to-do list</title>
<h1>My to-do list</h1>
<p>Here are the things I need to do:
<ul>
  <li>First item
  <li>Second item
  <li>Third item
</ul>
<p>That's it!

You can omit elements such as html, head, or body. Additionally, depending on the element, you can even omit the closing tag, like with p and li.