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

How we can create listbox control in html?

876


How do you write html?

870


Who made html5?

813


How do I alt text a picture?

863


How to terminate a web worker?

1328


What is the meaning of dynamic web page?

882


Why is a div called a div?

845


What is image map in html5?

861


What happens if there is no text between the tags? Does this affect the display of the html file?

756


How do I make my website responsive?

899


How do I change the title of a framed document?

882


What is

tag and why it is used for?

773


Can html5 replace javascript?

969


What is the difference between basefont and font tag?

880


What is definition list in html?

937