But putting style information inside a tag defeats the whole purpose of styles, which is to separate the formatting from the content. If you want to make every H1 header Helvetica and green, wrapping the H1 in FONT tags is just as efficientor rather, inefficientas including a STYLE attribute in each H1 .
This is where the sheets part of Cascading Style Sheets comes in. A style sheet is a list of style definitions that goes in the head of your HTML document. If you put the style information for H1 in the style sheet, all H1 s in your document will automatically be Helvetica and green.
<STYLE TYPE="text/css">
H1{ font-family: Helvetica;
color: green }
</STYLE>
This not only saves you a lot of typing when you create a document, but it also saves you a lot of retyping later if you decide the font should really be Arial and the color red, because you'll only need to make the change in one place.
Of course, with Dreamweaver you don't need to type any of that into your document; instead you use the CSS Style palette to create and modify styles.
|