HTML and CSS Reference
media , while printers, which output onto multiple fixed-sized parts, are
considered paged media .
Through most of this topic you'll be learning about CSS as it applies
to web browsers and continuous media on screen-based devices, with
a notable break in Chapter 12.
Now that you know everything you ever wanted to know about the
definition of CSS and the specification process, you might need to know
how you get actual CSS code into your web pages and what CSS really
Before you start writing CSS, you have to know where to put the code.
There are a few ways to define rules for your content, some based on
external files that can be shared between multiple HTML documents
on a site and some that are more specific to a page or even individual
HTML <link> element
You can use the HTML <link> element in the <head> of a document
to specify an external CSS document. This document does not contain
markup or script elements, only CSS code (rules and comments).
<link rel=”stylesheet” type=”text/css” src=”global.css”>
The type attribute defines which language is used in the style sheet. It
is required for HTML4 and XHTML, but it is optional in HTML5 (defaulting