What are best practices to order elements in <head>?

后端 未结 7 1354
有刺的猬
有刺的猬 2020-12-12 10:34

can use anything in any order? does placing of is important before

7条回答
  •  伪装坚强ぢ
    2020-12-12 10:54

    Most browsers don't mind how you order your elements, but you should always specify charset first.

    Best practices for IE7+ require that the charset, X-UA-Compatible, and base declarations occur before anything else in the head, otherwise the browser starts over and re-parses everything that came before.

提交回复
热议问题