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
What is the purpose of Socket.bufferedAmount atribute of WebSocket?
What is tag in ela?
Why we use xhtml instead of html?
Explain the key differences between localstorage and sessionstorage objects.
What is an alt tag for an image?
How do I make a picture into a link?
Why do we need br?
What is picture tag in html?
What is semantic HTML?
What is the correct html for creating a hyperlink with title?
Describe the difference between cookies, sessionStorage, and localStorage.
How do I do multiple colors of text?
What does br mean in html?
Why to use figcaption tag in html5?
What is xhtml modularization? Why xhtml modularization?