×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

<head> content standards

<head> content standards

<head> content standards

(OP)
Is there a standard order for the head content? (ie, scripts, include files, metatags, css links, etc)

RE: <head> content standards


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 @ Code Couch: http://www.codecouch.com/dan/

Code Couch Snippets & Info: http://www.codecouch.com/

The Out Atheism Campaign
 

RE: <head> content standards

(OP)
Thank you.  That also answers some of the "quarks" I've been coming across with compatibility issues.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close