Thursday, September 11, 2014

Bold Italic and Underline tag in html

biu-page-0

Bold:
To make a text bold in html we have to use bold <b> element, it is an inline element it means you can use it within the line and the effect of this tag is also applicable on the same line. The contents placed in between <b> bold tag is looks bold if you use this tag.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <b>Bold</b> Tag.</p>
</body>
</html>
  Output:
bold
Italic:
To make a text italic we have to use <i> tag, it is also an inline element.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <i>italic</i> Tag.</p>
</body>
</html>
Output:
italic
Undeline:
To make a text underline we have to use underline tag (<u>) it is also an inline element.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <u>Underline</u> Tag.</p>
</body>
</html>
 Output:
underline

No comments:

Post a Comment