First page Back Continue Last page Graphics
CSS Basics, cont.
Under standard HTML, to create a web site with <h2> tags that have the standard features of a Header tag (that is, their own paragraph, bold, with a size change) and also are dark blue, you have to code each one as follows:
- <h2>
<font color="darkblue">This is a darkblue H2 tag</font>
- </h2>
That’s a lot of information to type every time you want to use a dark blue <h2> tag. Using CSS, all you need to do is type a regular <h2> tag. The style information will be included in the Style Sheet (and the resultant web page) as follows:
- CSS File -- h2 { color: darkblue;}
- HTML File -- <h2>This is a darkblue H2 tag</h2>