style attribute
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.
Note To see which styles apply to which elements, see the individual CSS property.
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
See also
- a
- abbr
- acronym
- address
- applet
- area
- audio
- b
- big
- blockQuote
- body
- br
- button
- caption
- center
- cite
- code
- col
- colGroup
- custom
- dd
- del
- dfn
- dir
- div
- dl
- dt
- em
- embed
- fieldSet
- font
- form
- hn
- hr
- i
- iframe
- img
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- ins
- isIndex
- kbd
- label
- legend
- li
- listing
- map
- marquee
- menu
- object
- ol
- optGroup
- option
- p
- plainText
- pre
- q
- rt
- ruby
- s
- samp
- select
- small
- span
- strike
- strong
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- tr
- tt
- u
- ul
- var
- video
- xmp
Show:
