HTML Best Practice: Get your HEAD in order (via: Eric Law; IEInternals on MSDN Blogs)
Posted by jpluimers on 2014/03/08
Even though 3 years old, this is still relevant. Thanks Ilya Grigorik for pointing me at it.
Make sure your HTML HEAD tag has the elements in the below order:
- any charset must come first (UTF-8 works best) though even better is to specify this in your http header,
- any any x-ua-compatible comes second.
Why? Read Best Practice: Get your HEAD in order – IEInternals – Site Home – MSDN Blogs.
So the document element starts like this:
<doctype>
<html>
<head>
<meta http-equiv content-type charset>
<meta http-equiv x-ua-compatible>
<base>
<title, favicon, comments, script blocks, etc>
–jeroen
Leave a Reply