Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain autofocus attribute of html5?

895


What are the restrictions of Web Worker thread?

980


What are the differences between cell spacing and cell padding?

921


How can I create a div work like an input?

959


What is a dl list?

930


Is img a self closing tag?

844


Is the tag considered as a html tag?

807


What are the different attributes of the font tag?

848


Why to use pattern attribute in html5?

887


Is it possible for a webpage to contain multiple

or
elements?

860


What is html5 and its uses?

911


What is a benefit of using the label element?

895


What is param tag in java?

870


Does safari use html5?

853


How to create a link that will connect to another web browser page when clicked in html5?

826