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 trialRene Muhire
1,627 PointsHTML - adding the header and body element exercise
I written the following code to add the header and body element but I'm not sure where I'm going wrong? Can someone advise on the write format of the code?
<!DOCTYPE html> <html> <header> <meta charset="utf"-8> <title>Email Marketing | Tool</title> </header> <body> <header> <h1>Rene Daniel</h1> </header> </body>
</html>
3 Answers
Nicolas Degrandy
11,529 PointsHi Rene, Your basic HTML structure should be as bellow. Though you need to know how you want to display "Email Marketing | Tool Rene Daniel", but for the purpose of this exercise I would suggest you put it all in a paragraph <p> section.
<!DOCTYPE html>
<head>
<title>Rene Daniel's email marketing tool</title>
</head>
<body>
<p>Email Marketing | Tool Rene Daniel</p>
</body>
</html>
I hope this helps.
Stéphane Diez
19,350 PointsTo start an HTML5 Documents you need to put this in:
<!DOCTYPE html> <head> <title></title> </head> <body> </body> </html>
Rene Muhire
1,627 PointsThanks Stephane.
Blake Gall
2,517 Pointsif you want the header on the page, use
<h1>Header</h1>
you can change the number in the tag to make it smaller. 1 is largest, 6 is smallest.
Rene Muhire
1,627 PointsRene Muhire
1,627 PointsThanks Nicolas.