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

Explain Canvas?

0 Answers   HCL,


When is it appropriate to use frames?

0 Answers  


How do I start a website?

0 Answers  


Why do we add doctype in html?

0 Answers  


What is opening tag and closing tag in html?

0 Answers  


What is microdata in html5?

0 Answers  


What is the image tag?

0 Answers  


What is br tag?

0 Answers  


What do you mean by tables?

0 Answers  


What is the main use of html?

0 Answers  


What is a tag?

0 Answers  


What does whatwg stand for in the world of html5?

0 Answers  


Categories