Export (0) Print
Expand All

Type selector

Matches any element of the specified type.

Syntax

E { sRules }

Possible values

E

String that specifies the name of a document language element type.

sRules

String that specifies one or more cascading style sheet property/value pairs.

Remarks

A type selector matches every instance of the element type in the document tree.

Example

The following style rule applies to all the h1 tags within the document:

<style>
    h1 {color: teal; font-variant: small-caps; letter-spacing: 0.1em;}
</style>

Standards information

This selector is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371257.xtlink_newWindow(en-us,Expression.40).png.

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

ADD
Show:
© 2015 Microsoft