Skip to main content

Basic Formatting Tags of HTML - 4

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


Attribute
Value
Description
align
Left or Right or Center or Justify
By default the  alignment of the paragraph is LEFT.

Example

<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

Example

<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>

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>
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.

NEXT

Comments

Popular posts from this blog

HTML WEB PAGE DESIGN - How to Create simple HTML web page

How to Design Simple HTML Web page In this article, we are going to learn how to design HTML web page. This article is used to let you know, how to create a simple web page using HTML. With this article you will come to know how to create the simple web page from scratch. To create the web page one should use the editors like notepad or Dreamweaver or Notepad++ etc. Here we are using Notepad ,in this connection steps are initiated to be as following HTML  Web Page Design A web page is a part of a website, containing information about a particular topic. You can create a custom web page using HTML. You can put anything you want on your web page like images, tables, hyperlinks, etc. Open Notepad: To open the Notepad one has to go to Start -> All Programs -> Accessories ->Notepad.  Notepad Once Notepad is open write the coding their as given below 1. <HTML> is the first tag of the web page and you have to write it at the top of the no

How to create HTML Forms - II

How to create HTML Form -  II In this tutorial, we will learn about    How to create HTML Form .  So far we have discussed how to  create a frame ,  tables ,  List , insert  Images ,  Linking in HTML  etc. HTML Form is one of the most important  part of the websites  Every website has Contact forms or feedback forms.. Filling the Digital forms  saves time, cost of printing, and  paperwork. Submit Button Submit button It is used for submitting the form data to the server page. Example: How to create form - Submit button Output is: How to create form- Sumit Button <Select></Select> <select></select>   It is used to create Popup menu and a List.<option></option> is used to define the option in the drop-down menu  or the list. Attributes of <select></select> Name = name - Name of the drop down menu or  list Size= value - To specify the number of visible  values. Selected - To define Pre-selected item. Multi

Basic Formatting Tags of HTML - 2

Subscript the Text  <sub></sub> tag is used to display the text or figure or symbols below the baseline, slightly of small size then normal text. It is used to display mathematical formulas, footnote, end-notes. Example <html> <head> <title> subscript the text </title> </head> <body> H<sub>2</sub>O </html> Larger Text <big></big> tag is used to increase the size of the text by 1 point. Example <html> <head> <title> to increase the size of the text 1 point </title> </head> <body> Education <big>point</big> </body> </html> Smaller Text <small></small> tag is used to decrease the size of the text by one point. Example <html> <head> <title> to decrease the size </title> </head> <body> Education <small>time</small> </body> </html> S