STYLE Element | style Object
Specifies a style sheet for the page.
HTML Syntax
<STYLE DISABLED MEDIA = SCREEN | PRINT | ALL TITLE = text </STYLE>
Remarks
The STYLE element should appear in the HEAD section of an HTML document. Microsoft® Internet Explorer 4.0 and later permit multiple style blocks.
The STYLE element is a block element and requires a closing tag.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
Members
Example
This example encloses style declarations in the STYLE tag and changes one of those settings using the style object.
<HEAD> <STYLE> BODY { background-color: white; color: black; } H1 { font: 8pt Arial bold; } P { font: 10pt Arial; text-indent: 0.5in; } A { text-decoration: none; color: blue; } </STYLE> <SCRIPT> oParagraph.style.fontSize = 14; </SCRIPT> </HEAD> <BODY> <P>Sample Paragraph Text</P> </BODY>
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.