In the last two article, we learned about pseudo-classes in CSS and also done some interesting examples to practice it. Hope you have checked the link given in the last article, where we get a complete list of pseudo-classes in CSS. It is very easy to learn them when you know what the concept is used in it. Moving forward, today it's time for pseudo-elements. Let's begin... Pseudo...again Just like the pseudo-classes, pseudo-elements are used to style specified parts of an element. They can be useful in styling particular letter of text or insert content after some specified character using CSS. Syntax The syntax for pseudo-elements is similar to that of pseudo-classes: selector:: pseudo-element { property: value; } Note : We used single-colon for pseudo-classes while double-colon for pseudo-elements . The ::first-line Pseudo-element As the name suggests, ::first-line pseudo-element is used to select first-line of any text. It is important to note that,
The blog to help programmers to learn, experiment and understand new concepts.