Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
CSS Reference
Selectors
 Type Selector

  Switch on low bandwidth view
Type Selector
Matches any element of the specified type.

Syntax

HTMLE { sRules }
ScriptingN/A

Possible Values

EString that specifies the name of a document language element type.
sRulesString that specifies one or more Cascading Style Sheets (CSS) attribute/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:.1em; }
</style>

Standards Information

This selector is defined in CSS, Level 1 (CSS1).

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker