Problem Set: Introduction to HTML
Getting Started with HTML

How does the browser know we are writing HTML codes? We need to set up the bare minimum of the index.html document to tell the browser that this is an HTML file.

Follow the steps below to set up the basics on the index.html tab.


Let's set up the bare minimum html document.

  1. Declare the documentation type with <!DOCTYPE html> on the first line
  2. On the next line, write the opening html tag <html>
  3. On the last line, write the closing html tag </html>

The above three only needs to appear in an html document once, but they always need to be there.

Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

We always begin an html file with the declaration then the opening html tag, and the last line is always the closing html tag. If you need a review, click here

View Preview