12 out of 24 rated this helpful - Rate this topic

STYLE attribute

[This documentation is preliminary and is subject to change.]

Sets an inline style for the element.

HTML 4.01 Specification, Section 14.2.3

Syntax

HTML
<element STYLE="" ... >
JavaScript

Property values

sStyle

A String that specifies the inline style.

Standards information

Remarks

This attribute is not accessible through scripting. To access styles through scripting, use the style object.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Remarks (adjusted)
1. This attribute is accessible globally through its object-id.style... and locally through its object-event-handler="style..." (or "this.style...");

And as well by methods, object-id.getAttribute('style').cssText, etc....

2. This attribute prevents inheritance of its specified values but which may be changed as in #1.