All Tech Tips |
|||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||
STYLE Element | style ObjectSpecifies a style sheet for the page. Members Table
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. This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0. This element is not rendered. This element requires a closing tag. Example This example encloses style declarations in the STYLE element 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>
Standards Information This object is defined in HTML 3.2 . |
|||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||
|
Copyright © 2006 alltechtips.com. All rights reserved.
This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.
|
|||||||||||||||||||||||||||||||||