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
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!
1 comments
re-read my question…….. i edited it…………..
Answer 515bd478f709a8628b0000db
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.
1 comments
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
A good site (imo) about clean styling and why to use it is: http://www.html-5-tutorial.com
Answer 515cdb94a8eaff91850006d6
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.
Popular free courses
- Free course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner Friendly4 Lessons - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly11 Lessons - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly6 Lessons