What is the difference between id and class attributes?
Answer Posted / 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 |
Post New Answer View All Answers
Why is br tag used?
What is the difference between html5 and html4?
What are empty elements?
What is numbered list in html?
How to use html5 new tags in ie8 and lesser.
Is the br tag deprecated?
How to add image in the background of webpage in html?
Why aren't my frames the exact size I specified?
What is p tag?
How can I create a web page?
What is a td test?
What is html for lists?
What is a canvas?
What is singular tag?
What is the use of output tag in html5?