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
What is the necessity of empty tag?
What do tds mean?
What method is used to draw an image using canvas?
Should I close br tag?
What does a td stand for?
What is description list?
What is a html link?
What are the basic tags of html?
What is the relation between xhtml and xml?
What exactly is a website?
Should I end my urls with a slash?
What is main element in html5?
Can you create a multi-colored text on a web page?
What is html dom?
How do you pronounce bvlgari?