Skip to main content

Basic Formatting Tags of HTML - 1



Bold Text


<b></b> tag is used to apply bold on the text appearing inside the tag.  

Example

<html>
<head>
<title>
bold text
<body>
<b>Education is one of the precious thing of the world</b>
</body>
</html>


Italic Text


<i></i> tag is used to apply italic on the text appearing inside the tag.

Example

<html>
<head>
<title>
italic  text
</title>
<body>
<i>Education is one of the precious thing of the world</i>
</body>
</html>

Underline the Text


<u></u> tag is used to apply to underline the text appearing inside the tag.

Example

<html>
<head>
<title>
underline the text
</title>
</head>
<body>
<underline>education</underline>
</body>

</html>

Superscript the Text 


<sup></sup> tag is used to display the text or figure or symbols above the baseline, slightly of a small size than normal text. It is used to display mathematical formulas, footnotes, and end notes.

Example

<html>
<head>
<title>
superscript the text
</title>
</head>
<body>
45<sup>5</sup>
</body>
</html>

 
                   

Popular posts from this blog

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

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

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