Name
STYLE — NN n/a 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. The format of the property
assignments depends on the browser’s default style, but both
Navigator and Internet Explorer accept the CSS syntax. Style sheet
rules influence this element in Internet Explorer 4 for the Macintosh
more than they do the Windows version. You may wish to wait for
improved (and cross-browser) implementation before setting styles of
TEXTAREA elements.
Example
<TEXTAREA STYLE="text-size:14pt"></TEXTAREA>
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.formName.elementName.style
[window.]document.forms[i].elements[i].style
[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