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

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>
    ```