Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

alex axel
alex axel
2,014 Points

hello iam stuck at challenge task 5 in how to make a website they tell me dont forget to add title to your page plz help

i already added the title <title>Nick pettit | Designer</title> but they tell me dont forget to add a title to your page plz help

index.html
<!Doctype html>
<html>
  <head>
   <meta charset='utf-8">
                  <title>Nick Pettit | Designer</title>
</head>
<body>
     <header>
                  <h1>Nick Pettit</h1>
                  </header>
                  </body>
  </html>

2 Answers

Carlos Federico Puebla Larregle
Carlos Federico Puebla Larregle
21,073 Points

You are almost right, but when you define your charset you are mixing the quotation marks (with single, and double ones), try using only one of them. You could do it like this:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">            <---------- single and double quotation marks you have to choose one
    <title>Code Challenge</title>
  </head>
  <body>
    <header></header>
    <section></section>
    <footer></footer>
  </body>
</html>

I hope that helps a little bit

alex axel
alex axel
2,014 Points

arent I am doing it the same as you bro carlos ?

alex axel
alex axel
2,014 Points

arent I am doing it the same as you bro carlos ?

Try refreshing the page. Additionally, I noticed your code <code><meta charset='utf-8"></code> wraps the utf-8 with a ' ". It should be like this <code><meta charset="utf-8"</code> with a " ".