HTML Head and Body Tags

There are two parts of the HTML file, they are called the head and body tags. The HTML file will always have a head and body tags. These tags will go in between the open and close html tags. See examples 1 and 2 below.

The Head Tags

The head tags will have information about the HML file. You can find the title of the page in the head file. The title will show up on the browser bar or the page tab. Remember all HTML tags will have an open and a closed tag.


Example 1


  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Your Page Title Go Here</title>
  5. </head>
  6. </html>


The Body Tag

The body tags will have your content, images, text, links and more. The body tags has an open and closed tag.


Example 2

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Your Page Title Go Here</title>
  5. </head>
  6. <body>
  7. </body>
  8. </html>

If you have any questions about html head or body tags, please use the dussicion group or send me an PM here at Wealthy Affiliate.

Up Next: Heading and Paragraph Tags



Join the Discussion
Write something…
Recent messages
WilliamBH Premium
Thanks LeNard .. I found that a very useful explanation. Cheers, William.
Reply
seconds2work Premium
Thank you William, I plan to put out more training like this
Reply
MKearns Premium
It's been around a long time. I used to do some raw coding in it 15 years ago!
Reply
seconds2work Premium
Back in the 1990's I started learning WYSISYG ( what you see is what you get)

It's the same, just about.

Thanks Michael
Reply
JohnFry Premium
Thanks for the information!
Reply
seconds2work Premium
Thank you John
Reply
kasage00 Premium
thanks for sharing!
Reply
seconds2work Premium
Thank you Karin, for checking it out
Reply
bigrog44 Premium
Thanks for sharing.
Reply
seconds2work Premium
You're welcome Roger
Reply
Top