HTML Elements


An HTML document is made up of different HTML elements. Each HTML element typically has three parts:

  1. Opening tag
  2. Content
  3. Closing tag

Let us take the example of an <h1> element:

The ‘<h1>’ at the beginning is called the opening tag, the ‘Hello, World!’ text is the content and the ‘</h1>’ at the end is called the closing tag.