Name
STYLE — NN 4 IE 4 HTML 4
Synopsis
STYLE=”styleSheetProperties"Optional
This
attribute lets you set one or more style sheet rule property
assignments for the current element. You may use the CSS or
JavaScript syntax for assigning style attributes. However if you are
designing the page for cross-browser deployment, use only the CSS
syntax, which both Navigator and Internet Explorer support. Be aware
that even though the STYLE attribute is specified
for most elements of this chapter, Navigator 4 does not implement a
STYLE attribute for every one of those elements.
In Navigator 4, implementation tends to be limited to visible
elements.
Example
<B STYLE="color:green; font-size:18px">Big, green, and bold</B>
Value
An entire CSS-syntax style sheet rule is enclosed in quotes. Multiple style attribute settings are separated by semicolons. Style sheet attributes are detailed in Chapter 10.
Default
None.
Object Model Reference
- IE
[window.]document.all.elementID.style
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access