Chapter 3. Mastering of Pseudoelements and Pseudoclasses
Adding simple interactions on websites using CSS is known since pseudoclasses are available. Knowledge about how this feature can be used on websites is very important. Pseudoelements can be used in browsers such as Internet Explorer 8/9 + and can help with some repeatable elements on web pages that were in most cases added with empty spans
and divs
, for example, graphical details such as arrows in buttons, triangles, and so on. With pseudoelements, you can add these elements without creating DOM elements.
Drawing primitives is a very important skill, especially when you link them with pseudoelements into which you can add them. Adding triangles or some other specific elements can be a very important feature as you don't have to cut these graphical elements as a background or img
element.
This chapter will master pseudoelements, pseudoclasses, and the drawing of primitives in CSS code. Finally, in each section, you can...