What is a CSS selector?
It is a string that identifies the elements to which a particular declaration applies. It is also referred as a link between the HTML document and the style sheet. It is equivalent to HTML elements. There are several different types of selectors in CSS: -
- CSS Element Selector
- CSS Id Selector
- CSS Class Selector
- CSS Universal Selector
- CSS Group Selector
What are the benefits of CSS sprites?
If a web page has a large number of images that take a longer time to load because each image separately sends out an HTTP request. The concept of CSS sprites is used to reduce the loading time for a web page because it combines various small images into one image. It reduces the number of HTTP requests and hence the loading time.
0 Comments