Hey WSG,

I am just writing because I have been wondering if there is a better way of styling text.
Since <B><U><I> etc... are all outlawed and now depreciated...
How do you style your inner <P> text?

At the moment, when I have a paragraph and I want to bold a word, i use: <span class="bold">
And in the stylesheet I have a series of:
    .bold{font-weight:bold;}
    .underline{text-decoration:underline;}
    .italic{font-style:italic;}
So a bold italic word which is also underlined is just: <span class="bold italic underline">word</span>

I am sure that there is a better way because this method is becomming SOOooooOooo sooooo very verbose!
An example, it used to be <b></b> 7 characters for bold, now is <span class="bold"></span> 26 Characters...
Dont think I dont know about <em>'s etc... but how about italic etc...?

I know the idea of stylesheets is to have styles that are specific for the purpose...
But what if I just want to have underlined text, or just italic, or bold, just generic bold,underlined,italic text??

Say if I were to code a BBCODE system into my Blog etc... for myself.
What would I use to keep it standards compliant?

Thanks for the help!
I hope its not too confusing!
:S

- Chris Stratford


Reply via email to