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

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:

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:

No comments:
Post a Comment