What is the difference between the CLASS and ID when you are
writting CSS?
Answer Posted / suji
ID uniquely identifies an element within a document where
CLASS attribute specifies an element to be a member of one
or more classes. Unlike with the ID attribute, any number of
elements can share the same class. CLASS attribute can be
used to impose a certain pattern in the webpage, like the
page's header, footer,etc. which will enhance uniformity
among all webpage of a website.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
How do you insert a comment in HTML?
What is applet code?
What is difference between html 4 and html 5?
Explain marquee in html?
Is html5 better than flash?
How do you make frames?
Give an example of new elements in html5 to support multimedia and graphics?
Can you use SVG tags directly in HTML5 without any plugin?
What does html stand for?
Is sql a programming language?
How to upload struts file in dhtml?
What is xhtml explain?
What do you mean by xhtml?
How do I start a website?
If the user's operating system does not support the needed character, how can the symbol be represented?