Heading tags are used to define headings of contents in a document .The line tags are used to implement styles on a particular lline of text .They separate one block of text from another .
Heading Tags
The standard heading tags ,<H1>,<H2>,<H3>,<H4>,<H5><H6> are used to display headings.The <h1> tag is used to display the most dominant heading where as <h6> tag is used to display the least dominant heading .The headings are displayed from a new line in an emphasizing font style in contrast to the rest of the body content .The Syntax of the standard heading tags is
<H1 align ="LEFT" | "RIGHT" | "CENTER">Heading One</H1>
<H2 align ="LEFT" | "RIGHT" | "CENTER">Heading Two</H2>
<H3 align ="LEFT" | "RIGHT" | "CENTER">Heading Three</H3>
<H4 align ="LEFT" | "RIGHT" | "CENTER">Heading Four</H4>
<H5 align ="LEFT" | "RIGHT" | "CENTER">Heading Five</H5>
<H6 align ="LEFT" | "RIGHT" | "CENTER">Heading Six</H6>
The <HR> tag is used to display a horizontal line in an HTML document and is used to separate various sections of the document.
There are used some attribute given below
noshade: Specifies that no shading effect should be applied to the text included in the <HR> tag.
size --Specifies the thickness of a line in pixels .The default value is 2 pixels.
width--Specifies the horizontal width of a line .The default value for this attribute is the width of the web browser window
align--Sets the horizontal alignment of a line .Three value can be assigned to this attribute which are
LEFT ,CENTER ,RIGHT.
<BR> Tag
The <BR> Tag is used to insert a line break and does not Require an ending tag.Syntax is given below
<br>
<PRE
wrap
cols="coloumns">
Preformed Text
</PRE>
<html>
<head>
<title>This is the example of Heading Tag</title></head>
<body bgcolor="silver">
<H1 align="center">This is the heading one</H1>
<H6 align="center">This is the heading six</H6>
<HR align ="center" width="30%" size="10" noshade>
<PRE wrap >
####
# #
# # #
#
#
</PRE>
</body>
</html>
Heading Tags
The standard heading tags ,<H1>,<H2>,<H3>,<H4>,<H5><H6> are used to display headings.The <h1> tag is used to display the most dominant heading where as <h6> tag is used to display the least dominant heading .The headings are displayed from a new line in an emphasizing font style in contrast to the rest of the body content .The Syntax of the standard heading tags is
<H1 align ="LEFT" | "RIGHT" | "CENTER">Heading One</H1>
<H2 align ="LEFT" | "RIGHT" | "CENTER">Heading Two</H2>
<H3 align ="LEFT" | "RIGHT" | "CENTER">Heading Three</H3>
<H4 align ="LEFT" | "RIGHT" | "CENTER">Heading Four</H4>
<H5 align ="LEFT" | "RIGHT" | "CENTER">Heading Five</H5>
<H6 align ="LEFT" | "RIGHT" | "CENTER">Heading Six</H6>
<HR> Tag
The <HR> tag is used to display a horizontal line in an HTML document and is used to separate various sections of the document.
There are used some attribute given below
noshade: Specifies that no shading effect should be applied to the text included in the <HR> tag.
size --Specifies the thickness of a line in pixels .The default value is 2 pixels.
width--Specifies the horizontal width of a line .The default value for this attribute is the width of the web browser window
align--Sets the horizontal alignment of a line .Three value can be assigned to this attribute which are
LEFT ,CENTER ,RIGHT.
<BR> Tag
The <BR> Tag is used to insert a line break and does not Require an ending tag.Syntax is given below
<br>
<PRE> Tag
The <PRE> Tag display the content in format defined inside the <PRE> and </PRE> tags.The <PRE> tag displays the content in a new line . Syntax is<PRE
wrap
cols="coloumns">
Preformed Text
</PRE>
Implement of all Heading and Line Tag
<html>
<head>
<title>This is the example of Heading Tag</title></head>
<body bgcolor="silver">
<H1 align="center">This is the heading one</H1>
<H6 align="center">This is the heading six</H6>
<HR align ="center" width="30%" size="10" noshade>
<PRE wrap >
####
# #
# # #
#
#
</PRE>
</body>
</html>








0 comments:
Post a Comment