What is the difference between id and class attributes?
Answer Posted / nashiinformaticssolutions
• id: Unique identifier for an element (used once per page).
• class: Used to define a group of elements with the same style or behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a footer used for?
What is a json string?
Are there instances where the text will appear outside of the browser?
Does a hyperlink only apply to text?
Why is tag used?
Why div tag is used in html?
What is session storage and how can you create one?
How do you anchor in html?
How do you turn on html5 on safari?
What is getelementbyid?
When are comments used in html?
How do I get form data emailed to me?
How to create nested web page in html?
What are the advantages of SVG over other image format like JPEG or GIF?
What is the use of a div tag?