style
style
This page has been flagged with the following issues:
High-level issues:
Summary
Defines style information for an HTML document. Inside the style element you specify how HTML elements should render in a browser. Each HTML document can contain multiple style tags.
Overview Table
| DOM Interface | HTMLStyleElement |
|---|
Merge Candidate: This page is a candidate for merge with the following pages: Meta:HTML/Elements/style
Examples
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>
Notes
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 should appear in the HEAD section of an HTML document. Multiple style blocks are permitted.
Standards information
- HTML 4.01 Specification, Section 14.2.3
Members
The style object has these types of members:
- [#events Events]
- [#methods Methods]
- [#properties Properties]
Events
The style object has these events. {
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? | ? | ? | ? |
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here