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
How do you turn on html5 on safari?
Why to use method – lineto in canvas?
What is the advantage of using div tag in html web page development
How to redirect to new page on click of button in html?
Should nav be inside header?
How do you create multicolored text in a webpage?
What is emphasized text?
What is a
Does a hyperlink only apply to text?
Why to use xhtml.
What is dom in browser?
What is the purpose of Socket.bufferedAmount atribute of WebSocket?
What are Tags?
What are the new media-related elements in html5?
HTML 5 provides drag and drop facility. How do you make an image draggable?