What is the difference between id and class attributes?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
• 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 |
• 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 |
How do you create links to sections within the same page?
What is text tag in html?
What are the technologies that we use in dhtml?
How we can create dropdown list control in html?
What is getelementbyid innerhtml?
What is a html5 tag?
Is sql a programming language?
What tags are required for an html page?
What is a link rel?
What is w3c recommendation?
How do I specify html5?
What is the use of Canvas element?