*all code in XHTML. Just remove the space and trailing forward slash.
1. The <link /> element.
Code:
<link rel="stylesheet" href="styles.css" type="text/css" media="screen" />
and for more complex sites demanding more CSS, group your rules into separate CSS files. Then you can use the @import rule multiple times in the style sheet that you have linked to your xhtml document, for example:
Code:
@import 'master.css';
@import 'content.css';
@import 'tables.css';
2. For most sites I would say one stylesheet. You can put screen and print styles in the one stylesheet as so:
Code:
@media screen {/*screen rules here */}
@media print {/*print rules here*/}
No idea on the rest of the questions.
Bookmarks