Welcome Guest! (App Version 3.1)

websitnero logo name

Pseudo Elements Selectors

Selectors based on Pseudo-Elements

Pseudo-Element keyword is added in selector to select only certain portion of text inside element but not whole data. For example, ::first-line will only select first line of paragraph and not whole content inside it.

Look at the table below to have better understanding:

Pseudo Elements Selectors
S.No.NameRepresentationDescriptionExamples
1Content Selected::selectionSelects all elements which are selected by the mouse on the page.
2Before the elements::beforeAdds content before the selected elements.
3After the elements::afterAdds content after the selected elements.
4First Letter::first-letterSelects all the first letters of the prescribed elements.
5First Line::first-lineSelects the first line of all the prescribed elements.
WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.