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>
- All HTML elements begin with an opening tag. In this case, the opening tag is
- Most elements require a closing tag, denoted by a
/. In this case, the closing tag is
- 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.