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

no clue what I am doing wrong

I am doing front-end wed devel and keep getting Bummer! Remember to add a char.acter set attribute for your meta tag. I have no clue why

<!DOCTYPE html> <html> <head> <meta charsest="utf-8"> <title> </title> </head>

Logan R
Logan R
22,989 Points

Can you please add ``` around your code so we can fully see it?

Thanks!

4 Answers

Logan R
Logan R
22,989 Points
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
  </head>
  <body>
  </body>

</html>
Kevin Korte
Kevin Korte
28,149 Points

setting the character set in html looks like this

<meta charset="UTF-8">

In that example UTF-8 is the default character set for HTML5, and will likely be the one you'll want. It's a safe default. If it needs to be different, you'll likely understand and know why.

I got stuck on this one too lol.

The secret to continue is

<!DOCTYPE HTML>
<head>
<meta charset="UTF-8">
</head>

Basically, it wants all caps.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<!DOCTYPE html> tells the browser what type of document it's reading. Using that meta tag declares what encoding you'd like to use.