Quantcast
Viewing latest article 11
Browse Latest Browse All 60

HTML Best Practice: Get your HEAD in order (via: Eric Law; IEInternals on MSDN Blogs)

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


Filed under: Development, HTML, HTML5, Software Development, Web Development Tagged: HTML HEAD tag Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing latest article 11
Browse Latest Browse All 60

Trending Articles