Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

what is the difference between persistent,preferred and alternate

what is the difference between persistent,preferred and alternate

Problem

I need to know the Difference and the purpose of using persistent,alternate,preferred in linking css in to html().I do not no why this is used and how to use them.

please help.

Problem courtesy of: Sanjaya

Solution

The idea is to give users who "know how to adjust their browsers" options to view your site differently, perhaps a 'large font' version for unsightly folks, pink for girls, or whatever style you may seem fit to target an audience sector.

Persistent will always load (use this for your basic blocks, etc) and is default if not otherwise specified

preferred will load if requested, will swap with Alternate sheet.

alternate will be optional by user request (as in the larger font baseline/etc) and will swap out a preferred sheet while the persistent sheet will remain.

read more: http://www.w3.org/TR/html401/present/styles.html#h-14.3.1 & https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets

Solution courtesy of: briansol

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

what is the difference between persistent,preferred and alternate

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×