
|
Adding Style to Tags
- In the <head> section, add a <style> tag.
<head>
<title> My Title </title>
<style>
</style>
</head>
- In the <style> area, add special comment codes (for browsers that cannot read CSS code).
<style>
<!--
-->
</style>
- For each tag you want to use a style with, enter that tag without the <> signs.
<style>
<!--
b
h1
-->
</style>
- For each style, use braces to identify the special characteristics of that style.
<style>
<!--
b {color:#00ff00}
h1 {color:#00ff00}
-->
</style>
- Within the style braces, use the special style properties (see list), a colon, then the style "value". Place a semicolon between property definitions.
<style>
<!--
b {color: red; font-style: italic; font-weight: bold}
h1 {color: blue; text-decoration: none; font-size: x-large}
-->
</style>
Restricted access |