An internal style sheet should be used when a single document has a unique style.
You define internal styles in the head section by using the <style> tag, like the one on the right.
The browser will now read the style definitions, and format the document according to it.
|
|
This means that an old browser that does not support styles, will ignore the <style> tag, but the content of the <style> tag will be displayed.
It is possible to prevent an old browser from displaying the content by hiding it in the HTML comment element:
|
|
The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph: |
|
You’re only as good as your last haircut. — Fran Lebowitz |