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

后端 未结 8 910
庸人自扰
庸人自扰 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.

提交回复
热议问题