STYLE attribute
[This documentation is preliminary and is subject to change.]
Sets an inline style for the element.
![]() |
Syntax
| HTML |
|---|
<element STYLE="" ... > |
| JavaScript |
|---|
Property values
sStyle-
A String that specifies the inline style.
Standards information
- HTML 4.01 Specification, Section 14.2.3
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
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.
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.
- 6/23/2010
- Mr. Raymond Kenneth Petry
- 6/23/2010
- Mr. Raymond Kenneth Petry
