QA


Q&A

Q1:

Can I use the media attribute of the <link /> tag to create a style sheet specifically for viewing a web page on a handheld device?

A1:

Yes you can. By setting the media attribute of the <link /> tag to handheld, you specifically target handheld devices with a style sheet. You will likely see all mobile web sites eventually shift toward this approach to serving mobile pages, as opposed to using specialized markup languages such as WML (wireless markup language).

Q2:

Do I still need to provide a printer icon on my pages so that they can be printed?

A2:

No. The linked style sheet technique you learned about in this hour allows you to support print-friendly web pages without any special links on the page. However, if you want to enable the user to view a print-friendly version of a page in a browser, you can link to another version of the page that uses the print-specific style sheet as its main (browser) style sheet. Or you can provide some "fine print" on the page that instructs the user to use the browser's print preview feature to view the print-friendly version of the page.




SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net