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

how can you open an url into a new tab when clicked?

883


What is reset and submit buttons?

870


What does br br mean?

881


What does dhmu mean in texting?

1058


How do I center a div?

836


What is meta tags in html?

1010


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

874


How do I create keywords for my website?

859


Can attribute values be set to anything or are there specific values that they accept?

1023


What are the features of xhtml?

928


Why does the browser show my plain html source?

884


Is html client side or server side?

868


What is the purpose of iframe in html?

863


What is canvas made of?

903


What is emphasized text?

863