Web Browser

Code Editor
Learn
Site Structure

Anatomy of an HTML Element

Let's explore the basic anatomy of an HTML element. Line 9 of index.html contains a heading element:

<h1>You're Building a Website!</h1>
  1. All HTML elements begin with an opening tag. In this case, the opening tag is <h1>.

  2. Most elements require a closing tag, denoted by a /. In this case, the closing tag is </h1>.

  3. The website user only sees the content between the opening and closing tags.

Note: There are several other HTML elements in index.html in addition to the heading element. Don't be alarmed! We will encounter most of these in more depth during the lesson.

Report a Bug
If you see a bug or any other issue with this page, please report it here.