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 html displayfor?
What is picture tag in html?
What is a physical tag and logical tag in html?
What is a simple table?
What is bulleted and numbered lists?
How to handle events with dhtml?
How to redirect using HTML?
What are attributes and how do you use them?
What are the 10 basic html tags?
In how many ways can a heading be written in html?
What is html email format?
How many types of html are there?
Is textarea an empty tag in html?
Why for attribute is used in html?
Why do we need html5?