What is the difference between the CLASS and ID when you are
writting CSS?
Answer Posted / suji
ID uniquely identifies an element within a document where
CLASS attribute specifies an element to be a member of one
or more classes. Unlike with the ID attribute, any number of
elements can share the same class. CLASS attribute can be
used to impose a certain pattern in the webpage, like the
page's header, footer,etc. which will enhance uniformity
among all webpage of a website.
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Explain caching in html5 and html?
How many tags are defined in xhtml 1.0?
Explain list elements in html.
Why to use
tags in html?
What is semantic HTML?
How do you refer to the .css file in the web page?
What is the role of html?
What does tagging someone mean?
What is single tag?
Why is frameset not supported html5?
What are deprecated html elements?
What is canvas in html5? How to write a canvas?
what is xhtml? Why is xhtml needed?
What is dom and how it works?
What is the Application Cache in HTML5 and why it is used?