Is it proper to place code, or content between the HTML </head> and <body> tags

前端 未结 1 1652
感动是毒
感动是毒 2020-12-22 01:32

Is it okay to place HTML code between the ending of the head area and before the beginning of the body area. I have done this before, on various sites without any problems,

相关标签:
1条回答
  • 2020-12-22 02:19

    No, is not okay. All the content of the page should go inside <body>. Check the HTML specification. Browsers are really forgiving, but even if it works you shouldn't do it.

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