Professional Documents
Culture Documents
The body element defines the documents' body. It contains all the contents of the document (like text, images, colors, graphics, etc.).
Example
<html> <head> </head>
Optional Attributes
Attribute alink Value rgb(x,x,x) #xxxxxx colorname file_name Description Specifies the color of the active links in the document. Deprecated. Use styles instead.
Background
An image to use as the background. Deprecated. Use styles instead. The background color of the document. Deprecated. Use styles instead.
Bgcolor
rgb(x,x,x) #xxxxxx colorname rgb(x,x,x) #xxxxxx colorname rgb(x,x,x) #xxxxxx colorname rgb(x,x,x) #xxxxxx colorname
Link
Specifies the color of all the links in the document. Deprecated. Use styles instead.
Text
Specifies the color of the text in the document. Deprecated. Use styles instead.
Vlink
Specifies the color of the visited links in the document. Deprecated. Use styles instead.
Example
Source Output
This text contains<br />a line break This text contains a line break
Example
Source <!--This text is a comment--> Output
Example
Source Output
<h1>This is header 1</h1> <h2>This is header 2</h2> <h3>This is header 3</h3> <h4>This is header 4</h4> <h5>This is header 5</h5> <h6>This is header 6</h6>
This is header 1
This is header 2
This is header 3 This is header 4 This is header 5 This is header 6
Optional Attributes
Attribute align Value left center right justify Description Specifies the alignment of the text in the header. Deprecated. Use styles instead
Example
Source This is some text <hr /> This is some text Output This is some text
Optional Attributes
Attribute align Value center left right noshade Description Specifies the alignment of the horizontal rule. Deprecated. Use styles instead
noshade
When set to true the rule should render in a solid color, when set to false the rule should render in a two-color "groove". Deprecated. Use styles instead
size
pixels % pixels %
Specifies the thickness (height) of the horizontal rule. Deprecated. Use styles instead Specifies the width of the horizontal rule Deprecated. Use styles instead
width
HTML automatically adds an extra blank line before and after a paragraph.
Example
Source <p>This is some text in a very short paragraph</p> Output
Optional Attributes
Attribute align Value left right center justify Description Specifies the alignment of the text within the paragraph. Deprecated. Use styles instead
Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text Deprecated. Use <del> instead Deprecated. Use <del> instead Deprecated. Use styles instead