Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<head> content standards

Status
Not open for further replies.

LittleNFiesty

Technical User
Sep 26, 2006
46
US
Is there a standard order for the head content? (ie, scripts, include files, metatags, css links, etc)
 
In theory, there shouldn't be.

However, I've experienced problems with putting IE 8 into compatibility mode if the meta tag is placed after a script tag, or certain other elements. For this reason, I'll always put the compatibility directive first should I need it.

Also, if you have any JS that needs to access things like the document title, etc, then it would need to be included after the title element.

Personally, I always put any meta tags, then title, then main CSS, then IE override CSS, then JS.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Thank you. That also answers some of the "quarks" I've been coming across with compatibility issues.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top