Ajax-loader-large-white
HTML Basics
Basic terminology

To learn more HTML, we should learn how to talk about HTML. Already you have seen we use <>s a lot.

  1. Things inside <>s are called tags.
  2. Tags nearly always come in pairs: an opening tag and a closing tag.
  3. Example of opening tag: <html>
  4. Example of closing tag: </html>

You can think of tags as being like parentheses: whenever you open one, you should close it. Tags also nest, so you should close them in the right order: the most recently opened tag should be the first one closed, like in the example below.

<first tag><second tag>Some text!</second tag></first tag>

The last exercise taught us how to set up our HTML file. Everything we do now will go between <html> and </html>.

Practice makes perfect! One more time:

Instructions
  1. Include a <!DOCTYPE html> tag in the index.html file.
  2. Put in the <html> opening and closing tags.
  3. Between the <html> tags, write whatever you like.
  4. Press Save & Submit Code to see what you've written appear on the page!
?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Feel free to peek back at earlier exercises if you forget exactly what a tag looks like.

index.html
project
View Preview