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
If you see a web address on a magazine, to which web page does it point?
Which tag specifies a key pair generator field in a form?
What methods are used to draw straight line using canvas?
What is footer in html?
What is html5 tag?
How do you add a keyword in word?
What is istable?
What are elements and tags in html?
What are the features of xhtml?
What does the a tag stand for?
What can you do with html5?
What is a body tag?
What happens if doctype is not specified?
How many HTML tags are should be used for the most simple of web pages?
How we can change the size of image in html?