Possible Duplicate:
What does appending “?v=1” to CSS and Javascript URLs in link and script tags do?
When I download a files from http://html5boilerplate.com/, it has ?v=2 in css.
What does it mean and how does it affect to loading css?
<link rel="stylesheet" href="css/style.css?v=2">
The location order of precedence is: browser default rules, external style sheet rules, embedded styles, and inline style rules.
Note: It doesn't matter in which order the classes are listed in the HTML element. However, the order of the class declarations in the <style> section are what is important. The second declaration will always take precedence over the first. Browsers read CSS from top to bottom.
This is Expert Verified Answer Applying style to a single specific HTML element can be best achieved through id type selector. The id type selector is used in CSS (Cascading Style Sheets) in order to select a specific single HTML element having that specific id attribute. The id type selector is used as #id_name.
If you set caches to expire far in the future adding ?v=2 will let the server know this is a new file but you won't need to give it a unique name ( saving you a global search and replace)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With