Profile image of KashishJain
Submitted by KashishJain
almost 12 years

why need to use body tag????? when html tag is enough....

you told me that the content inside body tag is the visible part………….. but when we dont use body tag…..and write inside html tag……its still visible……..then why use body tag……..whats the difference………?????????????

Answer 5151800a72e396a4ed001bab

0 votes

Permalink

Without the tags you will not be able to style your text or move it around to where you want. This will get clear when you continue the course,, don’t worry ! You will see and use more tags then you have ever imagined before Codeacademy entered your life!

Profile image of programma1
Submitted by programma1
almost 12 years

1 comments

Profile image of KashishJain
Submitted by KashishJain
almost 12 years

re-read my question…….. i edited it…………..

Answer 515bd478f709a8628b0000db

0 votes

Permalink

You’re right. Technically speaking you can leave them out and usually not notice the difference. It’s just one of those tags you use because it looks better, and because it’s expected to be there by webbrowsers (even though they seem to deal with the lack of it quite well).

So, in short, just use them if you’re able. It looks better and makes you come across as more of a professional.

Profile image of StefanBergh
Submitted by StefanBergh
almost 12 years

1 comments

Profile image of programma1
Submitted by programma1
almost 12 years

I also read that the google-bots reward you for using proper tags like

for the main message and other clean styling , so your website will have a higher ranking. I’m really starting to have great admiration for the people who are developing HTML5 and CSS3 for the world to use.

Answer 515bff2ccb48485191001474

0 votes

Permalink

A good site (imo) about clean styling and why to use it is: http://www.html-5-tutorial.com

Profile image of programma1
Submitted by programma1
almost 12 years

Answer 515cdb94a8eaff91850006d6

0 votes

Permalink

Most browsers assume there is a implied body tag if it doesn’t find one. That doesn’t mean you shouldn’t use it.. You cannot assume that in the future browsers will still render incorrect HTML.

Profile image of scott.korin
Submitted by scott.korin
almost 12 years