is it correct or whatever to use both a class and id in the same tag? so like <div class="" id=""></div>
i know it will work, but is it right to use it that way? just wanted to check cause wasnt sure. thxI never do it but I think it can be done.well, i know it can be done, but my question is, is it w3c compliant or whatever? or does it just work like vertical-align: middle will with a block element tag where it is for inline elements only. (also, if u know, where would i be able to read the answer for my own? having references is nice because they usually have answers to other questions too ) thx allCorrect me if I'm wrong, but I would say the cascading effect would come into play, and the later declaration takes over. Either supercedes or augments what the earlier one states.
Boy, that sounds grown-up huh? It depends. Say you have have a bunch of links. However, you have a certain class of links to be displayed differently, and of this, one specific to be even more different. As in this case, I don't see a particular problem with it, it's simply adding yet another identifier for the element. At any rate, it will validate, even up to XHTML 1.1, and there's no reason it shouldn't. You're simply describing the element.ok, so it is valid? cool and it will not daddynpg u are correct if i use the same attributes in both, but if i have say background: in one and then in the other i use color: they will both show. thx for the replies all
i know it will work, but is it right to use it that way? just wanted to check cause wasnt sure. thxI never do it but I think it can be done.well, i know it can be done, but my question is, is it w3c compliant or whatever? or does it just work like vertical-align: middle will with a block element tag where it is for inline elements only. (also, if u know, where would i be able to read the answer for my own? having references is nice because they usually have answers to other questions too ) thx allCorrect me if I'm wrong, but I would say the cascading effect would come into play, and the later declaration takes over. Either supercedes or augments what the earlier one states.
Boy, that sounds grown-up huh? It depends. Say you have have a bunch of links. However, you have a certain class of links to be displayed differently, and of this, one specific to be even more different. As in this case, I don't see a particular problem with it, it's simply adding yet another identifier for the element. At any rate, it will validate, even up to XHTML 1.1, and there's no reason it shouldn't. You're simply describing the element.ok, so it is valid? cool and it will not daddynpg u are correct if i use the same attributes in both, but if i have say background: in one and then in the other i use color: they will both show. thx for the replies all