What's the difference between HTML <head> and <body> tags?

后端 未结 8 912
庸人自扰
庸人自扰 2021-01-31 09:19

What\'s the difference between HEAD tags and BODY tags?

most HTML books only \'briefly\' mentions and tags...but they

相关标签:
8条回答
  • 2021-01-31 10:05

    Generally javascript code will function in the head before code in the body. The head section is usually used to contain information about the page that you dont neccessarily see like the meta keywords meta description or title of a page. You would also link to any external files like .css .js files in the head section as they need to load before the page is displayed.

    Anything in the body section is what you would expect to be see on screen.

    0 讨论(0)
  • 2021-01-31 10:08

    The Head tag is typically used to import other files and define attributes of your page that are not displayed, like meta data. So you could place CSS/Javascript files that you webpage requires in your Head section and they would load before the your page displays.

    The body Tag is where you you place the Parts of your website that you want displaed, like p tags, divs, etc.

    0 讨论(0)
提交回复
热议问题