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.
In index.html, change the text that appears between the
<h1> opening tag and the
</h1> closing tag.
Run your code to see the new text shown in the web browser!