Hi Chris
B U I are not exactly outlawed.
You can still use it, and I do believe b and i are perfectly valid in
XHTML - I use them myself.
Someone would have to check the underline though - I'm of the opinion
text should never be underlined unless it is a link.
Natalie :)
----- Original Message -----
From: Chris Stratford <[EMAIL PROTECTED]>
Date: Sat, 03 Jul 2004 12:31:37 +1000
Subject: [WSG] Styling Text...
To: [EMAIL PROTECTED]
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
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************