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

后端 未结 8 915
庸人自扰
庸人自扰 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 09:55

    The browser will process what's in the to show the accurately.

    The holds stuff like what character set your page uses, when to refresh, external sheets or scripts you may want to include, and information about your page.

    The holds only display-oriented stuff, usually HTML based.

    It's important to keep the model (i.e. the information) and the view (i.e. the HTML) separate. Why? Later, you might want to update a style, and you don't want to chase it down through all of your HTML, each time it happens. Better to do it at one place for the whole document, in the .

提交回复
热议问题