HTML and CSS Reference
In-Depth Information
Although you've seen a lot of selectors in this chapter, the key is to keep them as simple as possible. While you're
learning how to create and style web pages, there is nothing wrong with just using type, class, and ID selectors until
you feel comfortable enough to try others.
The reason there are so many selectors available is to allow for creating CSS that is more efficient, modular, and ro-
bust. That doesn't mean, however, that if you don't use advanced selectors your pages will be slow. A well-con-
sidered selector against a more beginner-friendly one may shave a few milliseconds off the time it takes a browser to
render a page—something that only really pays off on bigger websites with heavy amounts of user traffic.
In the next chapter, you learn the different types of values that can be used with properties to style a page just the
way you want!
Search WWH ::

Custom Search