Tell a Friend About Our Cool Software
There are three ways to define a new style.
Tags- ![]()
This will define a style for an existing tag. Simply click the arrow box, and select a tag from the list. This is usefull if you want all the tags on your page to have a certain property. For instance, if you want all visited links to have a certain color, select A:visited from the list, then define the properties of the style.
Class- ![]()
Here you can define a style with a name of your choosing. For example, you could define a style sheet named Bob. Then, in your page any time you want to apply the style Bob to a tag, you would use class="Bob". This is useful if you want some tags, but not all to have a certain style. For instance:
<P class="Bob">Hello</P>
<P>Hello</P>
The word first Hello would have the properties of Bob, while the second would not.
ID- ![]()
An ID is similar to a Class, except you should only use ID once per document. For instance, if you defined an ID named Tom, you should not do this:
<P ID="Tom">Hello</P>
<P ID="Tom">Welcome to my website</P>
ID's should only be used once, especially if you plan to do any scripting, as this may lead to errors in your script. If you need to use a certain style more once, use a Class identifier instead of ID.
After you have defined a new style, the next step is to Edit the Properties of your Style. This will define exactly how the style will act when you apply it to your page.