A+ A-

html formatting bold underline


In the event that you utilize a Word Processor, you should be acquainted with the capacity to make Text Bold, Italicized, or Underlined; these are only three of the ten alternatives accessible to demonstrate how content can show up in HTML and XHTML.

Html Formatting Bold :

Anything that shows up inside <b>...</b> component, is shown in Bold as demonstrated as follows:

Example :  (html formatting bold)


<!DOCTYPE html>
<html>
<head>
<title>Bold Text Example</title>
</head>
<body>
<p>The following word uses a <b>bold</b> typeface.</p>
</body>
</html>


This will produce the following result:

The following word uses a bold typeface.

Html Formatting Italics :

Anything that shows up inside <i>...</i> component is shown in displayed as demonstrated as follows:

Example : (html formatting italics)


<!DOCTYPE html>
<html>
<head>
<title>Italic Text Example</title>
</head>
<body>
<p>The following word uses a <i>italicized</i> typeface.</p>
</body>
</html>


This will produce the following result:

The following word uses an italicized typeface.

Html Formatting Bold Underline :

Anything that shows up inside <u>...</u> Element, is Displayed with Underline as demonstrated as follows:

Example : (html formatting bold underline)


<!DOCTYPE html>
<html>
<head>
<title>Underlined Text Example</title>
</head>
<body>
<p>The following word uses a <u>underlined</u> typeface.</p>
</body>
</html>


This will produce the following result:

The following word uses an underlined typeface.

Html Formatting Strikethrough:

Anything that shows up inside <strike>...</strike> element is displayed with strikethrough, which is a thin line through the text as shown below:

Example: (html formatting strikethrough)


<!DOCTYPE html>
<html>
<head>
<title>Strike Text Example</title>
</head>
<body>
<p>The following word uses a <strike>strikethrough</strike> typeface.</p>
</body>
</html>


This will produce the following result:

The following word uses a strikethrough typeface.