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
Explain autofocus attribute of html5?
What are the restrictions of Web Worker thread?
What are the differences between cell spacing and cell padding?
How can I create a div work like an input?
What is a dl list?
Is img a self closing tag?
Is the tag considered as a html tag?
What are the different attributes of the font tag?
Why to use pattern attribute in html5?
Is it possible for a webpage to contain multiple
What is html5 and its uses?
What is a benefit of using the label element?
What is param tag in java?
Does safari use html5?
How to create a link that will connect to another web browser page when clicked in html5?