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 id and class attributes?

Answer Posted / hr@tgksolutions.com

• id: Unique identifier for an element. Can only be used once per page. Example: <div id="main">.
• class: Used to group multiple elements with similar styling or behavior. Example: <div class="container">.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is br tag used?

746


What is the difference between html5 and html4?

787


What are empty elements?

771


What is numbered list in html?

1116


How to use html5 new tags in ie8 and lesser.

782


Is the br tag deprecated?

829


How to add image in the background of webpage in html?

846


Why aren't my frames the exact size I specified?

785


What is p tag?

761


How can I create a web page?

1042


What is a td test?

796


What is html for lists?

804


What is a canvas?

884


What is singular tag?

765


What is the use of output tag in html5?

789