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?

Answers were Sorted based on User's Feedback



What is the difference between id and class attributes?..

Answer / nashiinformaticssolutions

• 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

What is the difference between id and class attributes?..

Answer / nashiinformaticssolutions

• id: Unique identifier for an element (used once per page).
• class: Used to define a group of elements with the same style or behavior.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between id and class attributes?..

Answer / 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

What is the difference between id and class attributes?..

Answer / hr@tgksolutions.com

• id: Unique identifier for an element (used once per page).
• class: Used to define a group of elements with the same style or behavior.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is difference between html and http?

0 Answers  


What are seo keywords?

0 Answers  


Is there a way to prevent getting framed?

0 Answers  


What is html5 geolocation? How to use it?

0 Answers  


Explain the key differences between localstorage and sessionstorage objects.

0 Answers  


What is textcontent?

0 Answers  


Explain html5 graphics.

0 Answers  


What is the difference between the application model of HTML and HTML5?

0 Answers  


What does :: before mean in html?

0 Answers  


What is grouping in html?

0 Answers  


Why is label used in html?

0 Answers  


What is the use of datalist in html5?

0 Answers  


Categories