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

How do you set a character set?

I am in the How to make a website course and is stuck on one of the problems. How can I change this line of code <meta character="utf-8"> into a character set?

index.html
<!DOCTYPE html>
<html>
<head>
  <meta character="utf-8">
  <title></title>
</head>
<body>
  <p></p>
</body>
<footer></footer>
</html>
<meta charset="utf-8">

2 Answers

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,497 Points

The utf-8 is the character set for html-5. Html4 uses ISO-8859-1. However, the utf-8 fixes a lot of problems of the prior character sets so it is recommended that you use utf-8 now.

What's meta-8?

Html4 and 5 can both support multiple character encodings, utf-8 for html5 and iso-8859-1 for html4 are only defaults.