Codeloft
0 0 XP

Your first web page

6 min 20 XP + 10 for no hints

Every web page is built from elements. An element usually has an opening tag like <h1>, some content, and a closing tag like </h1>.

<h1> is the main heading of a page. <p> is a paragraph. The browser reads the tags to decide how to show the text, so visitors never see the tags themselves.

The editor already holds a tiny page. Change it and the preview updates as you type.

Example
<h1>About me</h1>
<p>I like football and drawing.</p>
<p>I live by the sea.</p>
A closing tag has a slash, like </p>. Forgetting it is the most common beginner mistake, and the Problems tab will point it out.

Your tasks

0 of 2 done
  1. Change the heading to your own name
  2. Add a second paragraph that says what you want to build

Quick check

Which tag closes a paragraph?

index.htmlUpdates as you type