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

Ana Maria Moncada
Ana Maria Moncada
7,772 Points

I dont understan the question

I don't understand the question.

2 Answers

Well it wasn't clear which question you were referring to, so I took the liberty to address all, given I had some ample amount of free time this evening :)

Challenge 1

Write an HTML doctype. ----- doctype is a way to tell the browser which version of html you are using. Since the videos are written using HTML five. Also DOCTYPE must always be in uppercase and should be preceded by an exclamation mark !

<!DOCTYPE html>

Challenge 2

Create the HTML element that will serve as the document root. ----- simply add the html tags which are the root element document, i.e. everything else comes within this

<!DOCTYPE html>
      <html> 

     </html>

Challenge 3

Add the head and body elements to the page. ---- simply add the respective tags

<!DOCTYPE html>
      <html> 
          <head></head>
          <body></body>
     </html>

Challenge 4

Set the character set for the page. ----- character set defines how the text within the HTML is encoded. By default we use the UTF-8 . All additonal information about the website that is not displayed on the screen is between the head tag

<!DOCTYPE html>
      <html> 
          <head>
              <meta charset="utf-8">
         </head>
          <body></body>
     </html>

Challenge 5

Add a title element to the page. ---- simple add the title tag inside the head tag

<!DOCTYPE html>
      <html> 
          <head>
              <meta charset="utf-8">
              <title>Text</title>
         </head>
          <body></body>
     </html>

Challenge 6

Add a header element, section element, and footer element. ----- HTML 5 has these new set of elements. Add them inside the body tag

<!DOCTYPE html>
      <html> 
          <head>
              <meta charset="utf-8">
              <title>Text</title>
         </head>
          <body>
                <header></header>
                <section></section>
                <footer></footer>
         </body>
     </html>
Roscoe Coney
Roscoe Coney
13,124 Points
    <p>This is code!</p>
    ```