146
Link a Style Sheet to a Page ...................................
2 In the head section of the
document, type <link.
1 In your editor, open a page
to which you want to link
the style sheet.
Link a Style Sheet to a Page
O
nce you move styles to an external style sheet, you must link the HTML page to the CSS
document in order to reapply the styles. You can use the <link> tag to accomplish this.
The link element takes three required attributes: rel, type, and href. The rel attribute
specifies the relationship between this page and the style sheet, and most often is set to a value of
stylesheet. The type attribute informs the browser as to which type of file it can expect when
it requests the style sheet from the server, and is always text/css. Finally, the href attribute
sets the path to the style sheet document.