Example
A simple HTML document, with the minimum of required tags: <!DOCTYPE html><html><head><title>Title of the document</title></head><body> The content of the document......</body></html> |
Output
Definition and Usage
The <body> tag defines the document's body.
The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.
Differences between HTML 4.01 and HTML5
All layout attributes is removed from HTML5.
All layout attributes is deprecated in HTML 4.01.
Attributes
Attribute | Value | Description | alink | color | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the color of an active link in a document | background | URL | Not supported in HTML5. Deprecated in HTML 4.01.Specifies a background image for a document | bgcolor | color | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the background color of a document | link | color | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the color of unvisited links in a document | text | color | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the color of the text in a document | vlink | color | Not supported in HTML5. Deprecated in HTML 4.01.Specifies the color of visited links in a document |
HTML <h1> to <h6> Tags
Example
The six different HTML headings: <h1>This is heading 1</h1><h2>This is heading 2</h2><h3>This is heading 3</h3><h4>This is heading 4</h4><h5>This is heading 5</h5><h6>This is heading 6</h6> |
Output
Definition and Usage
The <h1> to <h6> tags are used to define HTML headings.
<h1> defines the most important heading. <h6> defines the least important heading.
Differences between HTML 4.01 and HTML5
The "align" attribute is deprecated in HTML 4.01, and is not supported