The center, bold, italics and underline tags.

All the above four have an opening and closing tag.

  • <center> XYZ </center>.As the name suggests, any text between the center tag will be in the center of the screen.
  • <b> XYZ </b>. Text typed in between the tag will be bold.
  • <u> XYZ </u>. Text typed in between the tag will be underlined.
  • <i> XYZ </i>. Text typed in between the tag will be in italics.

Sample Program.

<html>
<head>
<title> Trying Bold, Italics, Underline and Center </title>
</head>
<body bgcolor=”black” text=”white”>
<br>
<h1><center><b><u><i> Welcome! </b></u></i></h1></center>
<hr><br>
<center>
<b> This text is BOLD </b><br>
<i> This text is in ITALICS </i><br>
<u> This text is UNDERLINED </u><br>
<b><u><i> This text is all three combined </b></u></i>
<br>
<hr>
</center>
</body>
</html>

Copy and paste the above program in notepad and save it as Trial.html

Try IT!

Advertisements
Categories: Uncategorized | Tags: , , | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: