Subclassing_Tags

So redefining, and is good and all, but what if you want to have lots of different paragraph styles? (Honestly, this is probably not a terrific idea, but I can see a use for 3 or 4.) Can you just make a  and a ?

Sadly, no. You can't You have to redefine existing tags. However, there is something that is close. You can give a tag a "class" attribute that says that it is a particular type of tag. (Yes, this is different than saying it is a  tag, but I will acknowledge that it is splitting hairs.) code format="html4strict" This is a normal paragraph. But this paragraph is special! code The first line is just a plain tag, but the second line is a tag with a class attached. That class will show up in the CSS stylesheet in just a moment. So let's look at the stylesheet: code format="html4strict"  p { color: #880000;} code This will set both paragraphs to be red text. (They are, after all, both tags.) However, if we add a line... code format="html4strict"  p { color: #880000;} p.nifty {text-style: italic;} code ... this will make the second paragraph both red and italic. (What if we didn't want the second paragraph to be red?)

This way you can effectively have an infinite number of different styles on your page!