HTML Basics
Make the head

Everything in our HTML file will go between the opening <html> and closing </html> tags.

There are always two parts to an HTML file: the head and the body. Let's start with the head.

The head contains information about your HTML file, like its title. The title is what we see in the browser's title bar or page tab. For example the title of this page is "HTML Basics | Codecademy".


Let's add a head and a title to our webpage. If you get stuck at any point, click "Stuck? Get a hint!" below for an example.

  1. Add an opening <head> tag and closing </head> tag.
  2. Between the <head> tags, add in an opening <title> tag and closing </title> tag.
  3. Between the <title> tags, write in a title for your page. For example, "My Webpage."
  4. Press "Save & Submit Code" to continue
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Your code should look something like this:

    <title>My Webpage</title>
View Preview