What is the difference between the CLASS and ID when you are
writting CSS?

Answer Posted / yathindra

In CSS we can call id with '#' and can be used only one time
for one page. When coming to the case of class in CSS it can
be used infinite number of times in the same page as well as
in the whole site.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In an html page form I have one button which makes us to open a new page in 15 seconds. How will you do that?

694


How do I rename all the files from .htm to .html after copying them from a pc to a unix machine?

582


Where is dhtml used?

594


How do I insert an image?

640


What are the web storages present in html5?

623


What are the new types for form validation in html5?

632


Is WebSQL a part of HTML 5 specification?

662


What is the use of details and summary tag?

582


How many types of html are there?

604


Do you need to close br tag?

559


Is it difficult to write codes in xhtml rather than html?

682


What is ul and li in html?

531


What is the use of viewport meta tag?

589


What is a html5 tag?

564


What is application cache in HTML5?

682