Skip to content

Tag Archives: CSS-Selectors

The target selector is used to represent a unique element (the target element) with an id matching the URL’s fragment. It can be used to… Read More
The :focus CSS pseudo-class Selector is used to target the focused element ie., it selects an element that is currently focused by the user. This… Read More
The :read-write selector is used to select an element (such as an input text) that is editable by the user. The elements with no readonly… Read More
::before selector is used to add the same content multiple times before the content of other elements. This selector is same as ::after selector.Syntax:   ::before{… Read More
The :active selector is used in styling an active link of web page. Style display when user clicks on the link. This selector is different… Read More
::after selector is used to add same content multiple times after the content of other elements. This selector is same as ::before selector. Syntax: ::after{… Read More
The :visited selector in CSS is used to select the visited links. For example, visit some link on website and again see it, then it… Read More
The selection selector is used to set the CSS property to the part of document that is selected by the user (such as clicking and… Read More
The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the… Read More
The :only-of-type selector in CSS represents only those element that has no siblings of the given type. It is used to set the CSS property… Read More
The required selector is used to select the required element with the required attribute and set the CSS property. Required attributes of Form elements are… Read More
The :read-only selector is used to selecting that element which is readable only. The read-only is used to disable the fields. Mainly read-only pseudo-class represent… Read More
The :only-child selector in CSS is used to match every element that is the only child of its parent. It represents an element without any… Read More
The :empty selector is used to select that element which does not contain any children (including text node). Syntax:Attention reader! Don’t stop learning now. Get… Read More
The :valid selector is used to select the form elements with a given value that validates according to the elements. This selector only works for… Read More