Lesson ยท 6 min
Your first page
Pages are made of elements
A web page is a text file written in HTML. HTML describes the parts of a page, and each part is called an element.
Most elements have an opening tag, some content, and a closing tag:
<h1>A big heading</h1>
<p>A paragraph of text.</p>
h1is the top-level heading. A page usually has one.pis a paragraph.
The closing tag has a slash: </p>. The browser reads the tags and shows the content, not the tags.
Your turn
Type your HTML in the editor. The editor does not add closing tags. Type the opening tag and the closing tag yourself.
The preview on the right updates when you press Run.
Tasks
2 to do
Task 1, not checked yet. Add a heading with the text
My first page. Use anh1element.Task 2, not checked yet. Below the heading, add a paragraph that says
Hello, web!Use apelement.
Task 1 of 2
Add a heading with the text My first page. Use an h1 element.