This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

321 points
053b72686ced3564ecbb512b3c5e1674?s=140&d=retro
Submitted by
bobbysmith
about 4 years ago

What is the purpose of the 'body' tag?

What is the purpose of the 'body' tag? Can't the 'body' tag's contents be effectively implemented without any tags, since it's already within the 'html' tag?

I tested it out in the module, and whatever the 'body' tag accomplished in this exercise worked even without the 'body' tag, just as in the previous exercises (though here it said I hadn't completed the exercise since I didn't insert 'body' tags).

If there is an explanation, please also incorporate that into this lesson itself.


2 votes

permalink

It is important to get into the habit of using the body tag because when you get into CSS you will probably want to change just the body, and not the whole page.

82 points
9a116a4c845695e7a13e02a9da9a58fe?s=140&d=retro
Submitted by
Chucklet
about 4 years ago


1 vote

permalink

just trust me bro, it's important

843 points
2d28147ab48080c93efe445a02d5c883?s=140&d=retro
Submitted by
CactopusOpus
about 4 years ago


1 vote

permalink

What chuck said.
It's good to get into the habit, just plop all your stuff you need in there.

Hope I helped!

~Jacob

446 points
Picture
Submitted by
Jacob Chatfield
about 4 years ago