Skip to main content

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>

Strike Text

<strike></strike> is used to apply strike through on the text.

Example

<html>
<head>
<title>
to apply strike through
</title>
</head>
<body>
time is <strike>precious</strike>
</body>
</html>


NEXT

Comments

Popular posts from this blog

Lists in HTML - Definition List

Definition lists is used to define the term and with  its description. It starts with the <DL> and endswith the </DL> tag The data term is defined inside the <DT> and </DT> tag. The data description is defined inside the tag <DD>and  </DD>. It has no attributes. Tags of Definition List <DL></DL> <DT></DT> <DD></DD> Example  <html> <head> <title> definition list </title> </head> <body> <dl> <dt>Word</dt> <dd> word is a word processor</dd> <dt>excel</dt> <dd> Excel is a spread sheet</dd> </dl> </body> </html> This will produce the following output Menu List It is used for creating menu list. It is created with the help of   <menu></menu> and <li></li> . Example <html> <head> <title> me...

Lists in HTML - Unordered List

Unordered List An Unordered List is a collection of item that is not  in sequential order. It starts with the <ul> tag and ends with the </ul> tag. Each list item starts with the <li> tag. Each item is marked with the bullet i.e . with the disc or square or circle.  By default the tag starts with the disc . It is also called Bulleted list. Tags of Unordered List <ul> </ul> <li></li> Example    Write a  program to print the list given below pen pencil book <html> <head> <title> unordered list </title> </head> <body> <ul> <li>pen</li> <li>pencil</li> <li>book</li> </ul> </body> </html> Example of Attributes of <ul> tag with the Type attributes Write a program to print the list given below <html> <head> <title> unordered list </title> </head...

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