Heading Tags
It is used for applying headings of different sizes to the web page. Headings are defined with the <h1>,<h2>,<h3> , <h4>,<h5> , <h6>.
Example
<html>
<head>
<title>
headings tag</title>
</head>
<body>
<h1>education</h1>
<h2>education</h2>
<h3>education</h3>
<h4>education</h4>
<h5>education</h5>
<h6>education</h6>
</body>
</html>
Paragraph Formatting
<p></p> tag is used to define the block of the text as paragraph. It has only one attribute which is defined below
Example
Attribute
|
Value
|
Description
|
align
|
Left or Right or Center or Justify
|
By default the alignment of the paragraph is LEFT.
|
<html>
<head>
<title>
paragraph tag
</title>
</head>
<body>
<p>
Video provides a powerful way to help you prove your point.
When you click Online Video, you can paste in the embed code for the video you
want to add. You can also type a keyword to search online for the video that
best fits your document.
</p>
</body>
</html>
Paragraph Tag with Alignment
<html>
<head>
<title>
paragraph tag
</title>
</head>
<body>
<p align="center">
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
</p>
</body>
</html>
Example
<html>
<head>
<title>comment tag</title>
</head>
<body>
<comment> Hello World</comment>
Education times
<!--Education-->
</body>
</html>
Comment Tag
<comment></comment> tag is used not to display the matter defined inside the tag. Types of comment tags
Tags
|
comment></comment>
|
<!--
-->
|
Example
<html>
<head>
<title>comment tag</title>
</head>
<body>
<comment> Hello World</comment>
Education times
<!--Education-->
</body>
</html>
Line Break
<br> tag is used to break the line. In the web page where ever you apply the <br> tag from their on the matter will moves to the next line.
Example
<html>
<head>
<title>
line break
</title>
<body>
Hello Tina
<br>
<br>
How are you?
</body>
</html>
Horizontal Rule
<hr> tag represents a thematic change in the web page. This tag draws a horizontal line across the whole page. The attributes of the <hr> tag
Attribute
|
Value
|
Description
|
Align
|
Left or Right or Center
|
By default the alignment of the <hr> tag is
center
If the align=”left”
then the horizontal line appears on left
hand side
If the align=”right”
then the horizontal line appears on right hand side
|
Size
|
Value in pixel or %
|
Change the size of the <hr> tag
|
Color
|
Colorname
|
Apply the
color on the <hr> tag
|
Width
|
Value in pixel or %
|
Sets the width of the rule.
|
Comments
Post a Comment