Sideway
output.to from Sideway
`-=[]โŸจโŸฉ\;',./~!@#$%^&*()_+{}|:"<>? ๐‘Ž๐‘๐‘๐‘‘๐‘’๐‘“๐‘”โ„Ž๐‘–๐‘—๐‘˜๐‘™๐‘š๐‘›๐‘œ๐‘๐‘ž๐‘Ÿ๐‘ ๐‘ก๐‘ข๐‘ฃ๐‘ค๐‘ฅ๐‘ฆ๐‘ง ร…โ€‰โˆ’โ€‚ร—โ€ƒโ‹…โˆ“ยฑโˆ˜๊žŠ๏นฆโˆ—โˆ™ โ„ฏ ๐”ธ๐”นโ„‚๐”ป๐”ผ๐”ฝ๐”พโ„๐•€๐•๐•‚๐•ƒ๐•„โ„•๐•†โ„™โ„šโ„๐•Š๐•‹๐•Œ๐•๐•Ž๐•๐•โ„ค๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐‘€๐‘๐‘‚๐‘ƒ๐‘„๐‘…๐‘†๐‘‡๐‘ˆ๐‘‰๐‘Š๐‘‹๐‘Œ๐‘ โˆผโˆฝโˆพโ‰โ‰‚โ‰ƒโ‰„โ‰…โ‰†โ‰‡โ‰ˆโ‰‰โ‰Œโ‰โ‰ โ‰ก โ‰คโ‰ฅโ‰ฆโ‰งโ‰จโ‰ฉโ‰ชโ‰ซ โˆˆโˆ‰โˆŠโˆ‹โˆŒโˆ โŠ‚โŠƒโŠ„โŠ…โІโЇ ๐›ผ๐›ฝ๐›พ๐›ฟ๐œ€๐œ๐œ‚๐œƒ๐œ„๐œ…๐œ†๐œ‡๐œˆ๐œ‰๐œŠ๐œ‹๐œŒ๐œŽ๐œ๐œ๐œ‘๐œ’๐œ“๐œ” โˆ€โˆ‚โˆƒโˆ…โฆฐโˆ†โˆ‡โˆŽโˆžโˆโˆดโˆต โˆโˆโˆ‘โ‹€โ‹โ‹‚โ‹ƒ โˆงโˆจโˆฉโˆช โˆซโˆฌโˆญโˆฎโˆฏโˆฐโˆฑโˆฒโˆณ โˆฅโ‹ฎโ‹ฏโ‹ฐโ‹ฑ โ€– โ€ฒ โ€ณ โ€ด โ„ โ— สน สบ โ€ต โ€ถ โ€ท ๏น ๏น‚ ๏นƒ ๏น„ ๏ธน ๏ธบ ๏ธป ๏ธผ ๏ธ— ๏ธ˜ ๏ธฟ ๏น€ ๏ธฝ ๏ธพ ๏น‡ ๏นˆ ๏ธท ๏ธธ โœ   โ   โŽด  โŽต  โž   โŸ   โ    โก โ†โ†‘โ†’โ†“โ†คโ†ฆโ†ฅโ†งโ†”โ†•โ†–โ†—โ†˜โ†™โ–ฒโ–ผโ—€โ–ถโ†บโ†ปโŸฒโŸณ โ†ผโ†ฝโ†พโ†ฟโ‡€โ‡โ‡‚โ‡ƒโ‡„โ‡…โ‡†โ‡‡ โ‡โ‡‘โ‡’โ‡“โ‡”โ‡Œโ‡โ‡โ‡•โ‡–โ‡—โ‡˜โ‡™โ‡™โ‡ณโฅขโฅฃโฅคโฅฅโฅฆโฅงโฅจโฅฉโฅชโฅซโฅฌโฅญโฅฎโฅฏ
Draft for Information Only

CSS Selectors

In Cascading Style Sheet, every CSS rule consists of a selector and a declaration, The declaration is the rendering information to be applied to the selected elements while the selector is the pattern used to select the matched elements to be applied.

The CSS Selectors in alphabetic order

Property NameDescriptionCSS LevelRefRemark #idto match all elements with an "id" id1,2.1โ€‰โ€‰last updated 11 Jan 2019*to match all elements2.1โ€‰โ€‰last updated 11 Jan 2019.classto match all elements with a "class" class1,2.1โ€‰โ€‰last updated 11 Jan 2019::after (:after)Insert something after the content of each <p> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019::before (:before)Insert something before the content of each <p> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019::cue (:cue)โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019::grammar-errorโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019::markerโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019::placeholderto select input elements with placeholder textโ€‰โ€‰โ€‰last updated 11 Jan 2019::selectionto select the portion of an element that is selected by a userโ€‰โ€‰โ€‰last updated 11 Jan 2019::slotted()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019::spelling-errorโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:activeto select the active link1,2.1โ€‰โ€‰last updated 11 Jan 2019:any-linkโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:backdropโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:blankโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:checkedto select every checked <input> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:currentโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:defaultto select the default <input> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:definedโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:dir()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:disabledto select every disabled <input> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:dropโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:emptyto select every <p> element that has no children (including text nodes)โ€‰โ€‰โ€‰last updated 11 Jan 2019:enabledto select every enabled <input> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:firstโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:first-childto select every <p> element that is the first child of its parent2.1โ€‰โ€‰last updated 11 Jan 2019:first-letter (::first-letter)to select the first letter of every <p> element1,2.1โ€‰โ€‰last updated 11 Jan 2019:first-line (::first-line)to select the first line of every <p> element1,2.1โ€‰โ€‰last updated 11 Jan 2019:first-of-typeto select every <p> element that is the first <p> element of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:focusto select the input element which has focus2.1โ€‰โ€‰last updated 11 Jan 2019:focus-visibleโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:focus-withinโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:fullscreenโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:futureโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:has()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:hostโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:host()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:host-context()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:hoverto select links on mouse over2.1โ€‰โ€‰last updated 11 Jan 2019:indeterminateto select input elements that are in an indeterminate stateโ€‰โ€‰โ€‰last updated 11 Jan 2019:in-rangeto select input elements with a value within a specified rangeโ€‰โ€‰โ€‰last updated 11 Jan 2019:invalidto select all input elements with an invalid valueโ€‰โ€‰โ€‰last updated 11 Jan 2019:is()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:lang(language)to select every <p> element with a lang attribute equal to "it" (Italian)2.1โ€‰โ€‰last updated 11 Jan 2019:last-childto select every <p> element that is the last child of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:last-of-typeto select every <p> element that is the last <p> element of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:leftโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:linkto select all unvisited links1,2.1โ€‰โ€‰last updated 11 Jan 2019:local-linkโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:not(selector)to select every element that is not a <p> elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:nth-child(n)to select every <p> element that is the second child of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:nth-last-child(n)to select every <p> element that is the second child of its parent, counting from the last childโ€‰โ€‰โ€‰last updated 11 Jan 2019:nth-last-of-type(n)to select every <p> element that is the second <p> element of its parent, counting from the last childโ€‰โ€‰โ€‰last updated 11 Jan 2019:nth-of-type(n)to select every <p> element that is the second <p> element of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:only-childto select every <p> element that is the only child of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:only-of-typeto select every <p> element that is the only <p> element of its parentโ€‰โ€‰โ€‰last updated 11 Jan 2019:optionalto select input elements with no "required" attributeโ€‰โ€‰โ€‰last updated 11 Jan 2019:out-of-rangeto select input elements with a value outside a specified rangeโ€‰โ€‰โ€‰last updated 11 Jan 2019:pastโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:placeholder-shownโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:read-onlyto select input elements with the "readonly" attribute specifiedโ€‰โ€‰โ€‰last updated 11 Jan 2019:read-writeto select input elements with the "readonly" attribute NOT specifiedโ€‰โ€‰โ€‰last updated 11 Jan 2019:requiredto select input elements with the "required" attribute specifiedโ€‰โ€‰โ€‰last updated 11 Jan 2019:rightโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:rootto select the document's root elementโ€‰โ€‰โ€‰last updated 11 Jan 2019:scopeโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:targetto select the current active #news element (clicked on a URL containing that anchor name)โ€‰โ€‰โ€‰last updated 11 Jan 2019:target-withinโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:user-invalidโ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019:validto select all input elements with a valid valueโ€‰โ€‰โ€‰last updated 11 Jan 2019:visitedto select all visited links1,2.1โ€‰โ€‰last updated 11 Jan 2019[attribute$=value]to match all elements with [attribute] attribute containing word ends with string "value"โ€‰โ€‰โ€‰last updated 11 Jan 2019[attribute*=value]to match all elements with [attribute] attribute containing word with substring "value" at the start, end or in the middle of the word.โ€‰โ€‰โ€‰last updated 11 Jan 2019[attribute]to match all elements with an "attribute" attribute2.1โ€‰โ€‰last updated 11 Jan 2019[attribute^=value]to match all elements with [attribute] attribute containing word begins with string "value"โ€‰โ€‰โ€‰last updated 11 Jan 2019[attribute|=value]to match all elements with [attribute] attribute starting with the word "value" of either exactly "value" or "value" immediately followed by "-".2.1โ€‰โ€‰last updated 11 Jan 2019[attribute~=value]to match all elements with [attribute] attribute containing the word "value"2.1โ€‰โ€‰last updated 11 Jan 2019[attribute=value]to match all elements with [attribute] attribute equal to "value"2.1โ€‰โ€‰last updated 11 Jan 2019columnA||tablecellBto match all <tablecellB> elements that belong to the scope of the <columnA> element.โ€‰โ€‰โ€‰last updated 11 Jan 2019elementA elementBto match all <elementB> elements that are nested inside the <elementA> element1,2.1โ€‰โ€‰last updated 11 Jan 2019elementA,elementB,โ‹ฏto match all <elementA>, <elementB>, <โ‹ฏ>, โ‹ฏ elements1,2.1โ€‰โ€‰last updated 11 Jan 2019elementA~elementBto match all <elementB> elements that are preceded by the <elementA> element but not necessarily immediately inside the same parent element.โ€‰โ€‰โ€‰last updated 11 Jan 2019elementA+elementBto match all <elementB> elements that are preceded immediately by the <elementA> element inside the same parent element.2.1โ€‰โ€‰last updated 11 Jan 2019elementA>elementBto match all <elementB> elements that are direct children of the parent <elementA> element2.1โ€‰โ€‰last updated 11 Jan 2019elementnameto match all <elementname> elements1,2.1โ€‰โ€‰last updated 11 Jan 2019nth-col()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019nth-last-col()โ€‰โ€‰โ€‰โ€‰last updated 11 Jan 2019

ยฉsideway

ID: 190300028 Last Updated: 3/28/2019 Revision: 0 Ref:

close

References

  1. http://www.w3.org/TR/1999/REC-html401-1999, 1999, HTML 4.01 Specification: W3C Recommendation, updated 24 December 1999
close

Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 9

Culture

Chinese 1097

English 339

Travel 38

Reference 79

Hardware 55

Computer

Hardware 259

Software

Application 213

Digitization 37

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 290new

Unicode 504

HTML 66new

Common Color 1new

Html Entity (Unicode) 1new

Html 401 Special 1

CSS 65new

Selector 1

SVG 46

ASP.NET 270

OS 447new

MS Windows

Windows10 1new

.NET Framework 1

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 207new

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2026 Sideway . All rights reserved Disclaimers last modified on 06 September 2019