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
What is the advantage of collapsing white space?
Where can I use main tag?
What is the process of tagging?
How many ways to use colors apply on html elements?
What is the difference between XML and HTML?
Differentiate different types of doctypes from one another
What is an h2 tag?
How do you make a picture into a background image of a web page?
What is tag english?
What is meant by scripting language?
Is there any need to change the web browsers to support html5?
Explain formnovalidate attribute of html5?
What is iswebpage?
What is element of computer?
Tell me what purpose does html5 serve?