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

How many html tags are essential for a simple web page in html?

0 Answers  


What is the main purpose of html?

0 Answers  


Are there instances where the text will appear outside of the browser?

0 Answers  


Is div used in html5?

0 Answers  


What does id mean in html?

0 Answers  


What is section tag in html?

0 Answers  


What is meta viewport?

0 Answers  


What is the correct html5 element for playing video files?

0 Answers  


What is a title tag?

0 Answers  


How do I hide my source?

2 Answers  


What is difference between html and xhtml?

0 Answers  


What is the real-world example of dhtml scripting?

0 Answers  


Categories