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
how can you open an url into a new tab when clicked?
What is reset and submit buttons?
What does br br mean?
What does dhmu mean in texting?
How do I center a div?
What is meta tags in html?
Why aren't my frames the exact size I specified?
How do I create keywords for my website?
Can attribute values be set to anything or are there specific values that they accept?
What are the features of xhtml?
Why does the browser show my plain html source?
Is html client side or server side?
What is the purpose of iframe in html?
What is canvas made of?
What is emphasized text?