(Translated by https://www.hiragana.jp/)
Type Selector
The Wayback Machine - https://web.archive.org/web/20080323083752/http://msdn2.microsoft.com:80/en-us/library/aa358830(VS.85).aspx
Click to Rate and Give Feedback
Type Selector
Matches any element of the specified type.

Syntax

HTML E { sRules }
Scripting N/A

Possible Values

E String that specifies the name of a document language element type.
sRules String 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

Class Selector, Equality [=] Attribute Selector, Existence [] Attribute Selector, Hyphen [|=] Attribute Selector, ID Selector, Prefix [^=] Attribute Selector, Substring [*=] Attribute Selector, Suffix [$=] Attribute Selector, Universal (*) Selector, Whitespace [~=] Attribute Selector
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker