text (body element)
< html | attributes
This page has been flagged with the following issues:
High-level issues:
| Applies to | ? |
|---|
Examples
View live exampleThis example uses the text property to change the text color of the body.
<BODY ID="oBody"> : <BUTTON onmouseover="oBody.text='green'">GREEN</BUTTON> <BUTTON onmouseover="oBody.text='red'">RED</BUTTON> <BUTTON onmouseover="oBody.text='blue'">BLUE</BUTTON>
Notes
Remarks
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
Syntax
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 7.5.1 (Deprecated)
See also
Related articles
html
… further results"html" is not in the list of possible values (Canvas, CSS Font, CSS Layout, Animation, Audio, Background, Border, Box Model, CSS Attributes, CSSOM, Combinators, Deprecated, Document Structure, Exclusions, FileSystemAPI, Filters, Flexbox, Fonts, Generated and Replaced Content, Gradients, Grid Layout, HTML, Multimedia, Media Queries, Mobile, Multi-Column, Off-line Storage, Paged Media, Performance, Pointer Events, Pseudo-Classes, Pseudo-Elements, Regions, Responsive Web Design, Ruby, Scrollbar, Selectors, Security, Syntax, Tables, Text, Touch, Transforms, Transitions, Video, Visual Effects, Web Components, WebRTC, XHR) for this property.
Related pages (MSDN)
body
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here