Noozer wrote:
> <p>This sentence has a <red>RED</red> word in it.</p>
It can be done, but it's probably a dumb idea.
Create a file called, say, MyHTML401.dtd and put the following in it:
================================================== ======
<!ENTITY % fontstyle "TT | I | B | BIG | SMALL | RED ">
<!ENTITY % HTML401 PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html401/strict.dtd">
%HTML401;
================================================== ======
Note: if you use the features of HTML 4.01 Transitional, you'll want to
change the 4th and 5th lines. Note also: you can add some more custom
tags after red, using the pipe (|) seperator symbol. Make sure you leave
the existing "TT | I | B | BIG | SMALL" there though (unless you don't use
those tags).
Then upload that file somewhere, to
http://example.com/MyHTML401.dtd for
example.
Then at the top of each page you write, include the following special
doctype:
<!DOCTYPE html SYSTEM "http://example.com/MyHTML401.dtd">
Now you have added some custom tags, you'll want to define what they "do".
You can do this with CSS:
red { color: red; font-weight: bold; font-size: bigger; }
But as I said, this is probably a dumb idea. The only time you're really
likely to want to add in your own tags is when you want to use
non-standard HTML extensions like <nobr>, <blink> or <marquee> but still
care about your HTML validating.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~
http://tobyinkster.co.uk/contact
Now Playing ~ ./killers/hot_fuss/02_mr_brightside.ogg