Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Use HTML Elements

line 2

what is line 2?

<!DOCTYPE html>
<meta html> <charset="ufc 8"> 

1 Answer

Codin - Codesmite
Codin - Codesmite
8,600 Points

It is a meta tag, the syntax is incorrect though (Or atleast I have never seen it written in that way.)

Correct syntax to my understanding:


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


<meta charset="UTF-8">

It should also be inside the head tag.

Like so (I have added some other Meta Tags as examples (There is a lot more than in my example that can be used):

<!DOCTYPE html>
            <meta charset="UTF-8"> <!-- Meta Tag that tells the browser which character encoding the webpage uses in this case it is UNICODE -->
            <meta name="keywords" content="HTML, CSS3, panda, bamboo"> <!-- Meta Tag that lists keywords for search engines searchs -->
            <meta name="description" content="This is an example description"> <!-- Meta tag that sets description for the contents of the page -->
            <meta name="author" content="Conrad Alverson"> <!-- Meta Tag that defines the author of the page -->
            <meta http-equiv="refresh" content="15"> <!-- This Meta Tag will refresh the page every 15 seconds or whatever value you place in content -->
            <p>Example Content</p>