When a browser reads a style sheet, it will format the document according to it.
There are three ways of inserting a 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.
I hate when people say “Nice to meet you” before I’ve even said anything. How do you know it’s nice to meet me?! I’m an asshole. — Jack Nicholson |