Feasibility Study

Only available on StudyMode
  • Topic: HTML, Hyperlink, HTML element
  • Pages : 7 (1761 words )
  • Download(s) : 76
  • Published : December 22, 2012
Open Document
Text Preview
HTML <body> Tag
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 in HTML5. Use CSS to align elements. Attributes
Attribute| Value| Description|
align| left
center
right
justify| Not supported in HTML5. Deprecated in HTML 4.01.  Specifies the alignment of a heading|

HTML <hr> Tag
Example
Use the <hr> tag to define a thematic change in the content: <h1>HTML</h1><p>HTML is a language for describing web pages.....</p><hr><h1>CSS</h1><p>CSS defines how to display HTML elements.....</p>|

Attributes
Attribute| Value| Description|
align| left
center
right| Not supported in HTML5. Deprecated in HTML 4.01.Specifies the alignment of a <hr> element| noshade| noshade| Not supported in HTML5. Deprecated in HTML 4.01.Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color| size| pixels| Not supported in HTML5. Deprecated in HTML 4.01.Specifies the height of a <hr> element| width| pixels

%| Not supported in HTML5. Deprecated in HTML 4.01.Specifies the width of a <hr> element|

HTML Paragraphs
HTML documents are divided into paragraphs.
Paragraphs are defined with the <p> tag.
Example
<p>This is a paragraph</p><p>This is another paragraph</p>|

Output

Note: Browsers automatically add an empty line before and after a paragraph. Don't Forget the End Tag
Most browsers will display HTML correctly even if you forget the end tag: Example
<p>This is a paragraph<p>This is another paragraph| The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce unexpected results or errors. Note: Future version of HTML will not allow you to skip end tags. Definition and Usage

The <p> tag defines a paragraph.
Browsers automatically add some space (margin) before and after each <p> element. The margins can be modified with CSS (with the margin properties). Differences between...
tracking img