Custom Search

Thursday, April 9, 2009

Example Tags

Example <html> tag
A simple HTML document, with the minimum of required tags:
<html>
<head>
<title> Title of the document </title>
</head>
<body>
The content of the document ......
</body>
</html>

Example <h1> to <h6> tag
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>

Example <p> tag
A paragraph is marked up as follows:
<p> This is some text in a paragraph. </p>
<p align="left"> Paragraph text align to the left side. </p>
<p align="center"> Paragraph text align to center. </p>
<p align="justify"> Paragraph text align to justify. </p>

Example <br> tag
A line break is marked up as follows:
This text contains <br/> a line break.

Example <hr> tag
A horizental line is marked up as follows:
Some text here <hr/> and some text here. it make horizontal line between the text
Attribute are align (center, left, right)
noshade
size (specifies the thickness of the horizontal rule. value is in pixels)
width(specifies the width of the horizontal rule. value is in %)

<hr align="center" size =10 width=50% >