Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

type

The type selector is used to target elements by their type.
Syntax Logicelement { property_list }

CSS Code Example

<style> h2 { color:#06C; } p { color:#090; } </style> <h2>Some Stuff</h2> <p>Stuff inside my paragraph...</p> <h2>More Stuff</h2> <p>Stuff inside my paragraph...</p>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang