External Style Sheet |
|
Each page must link to the style sheet using the <link> tag.
The <link> tag goes inside the head section:
|
|
5.css
, and format the document according to it.
An external style sheet can be written in any text editor.
The file should not contain any HTML tags.
Your style sheet should be saved with a .css extension.
An example of a style sheet file is shown on the right:
|
|
margin-left: 20 px
” instead of “margin-left: 20px
” it will only work properly in IE6 but it will not work in Mozilla/Firefox or Netscape.