In this chapter, you learned the basics of pseudoclasses, pseudoelements, and the drawing of primitives in CSS code. As a front end developer, you will use these CSS elements very often. Pseudoclasses give you the basic interactivity (hover, active) and expand the possibilities of selectors (:nth-child
, :first-child
, :last-child
). With pseudoelements, you can expand the possibilities of HTML with CSS code (:before
, :after
, :first-letter
, :first-line
) and you can set styles to selection.
In the next chapter, you will get basic knowledge about media queries, which are the foundation for responsive websites.