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
Is hr an empty tag?
What is formatting in html? Explain some formatting tags?
How do you keep list elements straight in an HTML file?
How to create scrollable tables in HTML-DHTML? My doubt is "I want to create a table whose header will remain stationery when I scroll the table vertically, but at the same time when I scroll horizontally, the header should scorll sidewise along with the body."
What is local storage concept in HTML 5?
Which tag contains the cell tags?
What does the a tag stand for?
How do I keep people from stealing my source code and/or images?
Is html 5 backward compatible?
How to use output element? Give an example.
What is the difference between