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 FRAMES - HTML Frames Example with Output

Post Updated :16-02-2018 HTML Frames is used to display more than one file. It is used to divides the browser window into different parts or sections  i.e.  row-wise or column-wise or row and column-wise . Each section can display HTML files.To create a frame  two tags are used they are <frameset> and <frame> tag. Attributes of  <frameset>    tag 1. Cols=value is % or pixels 2. Rows= values in % or pixels Attributes of <frame> tag 1. Src= "path" 2. Name="name of the frame" 3. Border= value in pixels 4. Noresize 5. Scrolling="true" or "false" 6. Marginwidth=value in % or pixels 7. Marginheight=value in % or pixels If I want to divide the browser into two columns. The following example will be used to divide the window into 2 section. In the example given below we are using to divide the browser into equal sections i.e. 50% each. HTML Frames Example with Output Simple example of two- framed page ...

How to create HTML Form - I

How to create HTML Form 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  Before learning about how to create a Form lets understand   what is a form ? What is a form? Dictionary meaning of the form is  a blank document or template to be filled in by the user, in the same way as HTML Forms. HTML Forms are used  to gather/collect information about an user or customer, such as  his or her  e-mail address, name, address, phone, date of birth and, educational qualification etc.  <form></form> tag is used to create the HTML Form as given below. <form action="abc.php" method=""> ----...

Lists in HTML

List Today we are going  to  talk about the List. Question arises what is List ? A list is a collection of items. There are five types of list in HTML They are defined  below Ordered List Unordered List Directory List Definition List Menu List Ordered List  If you want to display items in a numbered  list  like 1,2,3,... or A,B,C... or i,ii,iii.... or I,II,III... or a,b,c....... Ordered List starts with the <ol> tag and ends with the </ol> tag. Each item starts with the <LI> tag. It is also called the Numbered List. Tags of Ordered List <ol></ol> <li></li> Attributes of Ordered List Attributes Value Description Type “1” or “I”  or “I” or  “a”  or ”A”  It specifies type of numbering's. By default the numbering Start Value To specify the starting point of the numbering. Example <html> <head> ...