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
What does dhmu mean in texting?
Is it possible to set specific colors for table borders?
What is the difference between b and br tag?
Login form located at the home page acepting the name of the customer and its address, credit card and name of the products, a customer wnats to purchase, after the form has been accepted the website will issue order number for knowing the status.
When are comments used in html?
Can attribute values be set to anything or are there specific values that they accept?
How do I start a website?
When was xhtml created?
What is the Application Cache in HTML5 and why it is used?
What are the new api's provided by the html5 standard? Give a brief description of each.
What is a header in code?
How do you pronounce hermes?
What does a html stand for?
What is html text format?
What is doctype used for in html?