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 trialSteven Dykstra
179 Pointscharset syntax - does Workspaces provide examples?
Exercise is asking me to identify the character set so I typed in:
<meta charset = "utf-8">
which is wrong I guess.
Two questions:
What is wrong?
Is there a way to look up the syntax in Workspaces or somewhere else?
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
</head>
<body>
</body>
</html>
2 Answers
William Li
Courses Plus Student 26,868 Pointsumm... this question has come up alot lately.
<meta charset="utf-8">
No space in between attribute assignment .
Steven Dykstra
179 PointsThx William. I also now have a reference page for HTML syntax that I am using: http://www.w3schools.com/html/default.asp
William Li
Courses Plus Student 26,868 Pointshi, steven, technically speaking, your HTML is valid, it will works on any browser; the grader is being a bit strict here. But typically speaking, if you look at HTML source from any page, people generally write attribute assignment charset="utf-8"
instead of charset = "utf-8"
for better readability, I guess it's a convention thing.