Quote:
Originally Posted by TWD
Thats about what I thought.
Now to add an extra element of difficulty:
Suppose we have an inline block of CSS and an inline block of JavaScript.
Where should they be placed in relation to each other and in relation to the other <head> tags for best practice?
I know you shouldn't really be using inline scripts but lets assume for the sake of the argument that it's required.
What then?
|
Just the same, there is no "right" or "wrong" order. Same as "shouldn't use inline/inpage scripts/styles". It really doesn't matter.
If the style or script only applies to one page, leave it in the page. That way it cannot intefere with any global scripts/styles but can be used to override global scripts/styles.
Same with inlne items, if it only applies to one element in the entire site, set it as inline on that element.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|