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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of collapsing white space?

835


Where can I use main tag?

743


What is the process of tagging?

848


How many ways to use colors apply on html elements?

736


What is the difference between XML and HTML?

843


Differentiate different types of doctypes from one another

802


What is an h2 tag?

757


How do you make a picture into a background image of a web page?

770


What is tag english?

726


What is meant by scripting language?

767


Is there any need to change the web browsers to support html5?

776


Explain formnovalidate attribute of html5?

857


What is iswebpage?

787


What is element of computer?

795


Tell me what purpose does html5 serve?

815