Forum Moderators: not2easy

Message Too Old, No Replies

Mapping an html tag with both an id and a class?

I'm debugging someone else software, is this legit?

         

crowthercm

4:17 am on Oct 24, 2003 (gmt 0)

10+ Year Member



Hello,

Does this sound strange to anyone else? I'm debugging someone elses code and finding multiple class tags used in the same html tag sometimes and often both an id and a class together...

i.e. here is one line
<iframe class="pTable" onblur="To_Hidden('$name', '$name2'); W_blur();" id="idContent" contentEditable="true" onfocus="hide_div();W_focus();" width="100%" height="100%" oncontextmenu="alert()" class="frm2">

This partiular tag has 2 classes defined + 1 id? Am I missing something or am I rightly confused..

Thanks,
Chris

amznVibe

5:10 am on Oct 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know about two seperate class statements but you can use multiple classes on any element. See here:
[webmasterworld.com...]

crowthercm

5:22 am on Oct 24, 2003 (gmt 0)

10+ Year Member



That deserves a *wow*, I didn't know you could do that. Thanks (: