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
How we can create listbox control in html?
How do you write html?
Who made html5?
How do I alt text a picture?
How to terminate a web worker?
What is the meaning of dynamic web page?
Why is a div called a div?
What is image map in html5?
What happens if there is no text between the tags? Does this affect the display of the html file?
How do I make my website responsive?
How do I change the title of a framed document?
What is