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 Review: HTML First

ravi chandra kolli
ravi chandra kolli
174 Points

About coding

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Ravi Chandra Kolli| Designer </title> </head> <body> <header> <h1>Ravi chandra Kolli</h1> <h2>Designer</h2> </header> <section> <p>I will make it out later</p>
</section> <footer> <p>Ā© 2014 kolli</p> </footer> </body> </html>

I'm not able to execute this code. It was just showing my name not even the title tag is working.

Help me out

1 Answer

Tyler Dix
Tyler Dix
14,230 Points

I'm unsure what results you'd like. If you want the code to show up on your screen, do this:

<!doctype html>

<html>
   <body>
      <p>Your stuff here.<p>
   </body>
</html>

Notice that any content is wrapped between the <body></body> tags. The <html></html> tags wrap the body tags.

If you want the code to show up as the title of your webpage (much like the title of this webpage is "About coding | Treehouse Forum" then you must wrap your content like this:

<!doctype html>

<html>
   <head>
      <title>Your content here.</title>
   </head>
</html>

The head and title tags are always at the very top of your html document. Below that you'd add the body tags and so forth.

Hope this helps.