Forum Moderators: open

Message Too Old, No Replies

Can you assign a class to strong?

         

Clark

6:05 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is
<strong class="foo">text</strong>
allowed?

Marshall

6:48 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have assigned new weight values to strong without any problem and it always validated. Not sure how correct it is though.

Marshall

Dabrowski

6:56 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe you can assign a class to ANY tag. Apart from <html>, <head> and anything in it.

encyclo

7:02 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No problem at all. Just don't forget the semantics of the
strong
in terms of usage (ie. don't use it for text which should not be emphasized). You can, however, style it how you want.

Clark

11:14 pm on Oct 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Excellent, thanks.