HTML – BOLD TAG

HTML bold tag is used to extra highlight a text. In webpage if we want to highlight a text, then we can use bold tag. (Highlight: text with extra dark colour and text size little bit larger than normal text size).

BOLD TAG

Bold tag- ‘<b></b>’. Bold tag too has close tag. Which ever text we want to set as bold text, we wrap the text or texts with bold tags.

Example:

<b>I am a bold text</b>

When to use bold tag in a HTML Webpage?

In a webpage, when we want to draw attention of reader or viewer or user towards certain text, then we can use bold tag. Bold tag is used to highlight definition or term or text around which the webpage is focussed.

What does bold tag do in a HTML Webpage?

When a browser come across a bold tag wrapped around text or texts, it bolds the wrapped text. It stylises the wrapped text or texts with dark colour, and extra font weight.

How to use underline tag in a webpage?

Lets see how to use bold tag:

Open the webpage which we have created in one of the previous chapter.

<html>

<head>

<title>This is a sample webpage</title>

<meta name=”content” description=”this is a sample webpage for practice purpose.”/>

</head>

<body>

This is a sample webpage. This webpage is for practice purpose. I have successfully developed the webpage.

</body>

</html>

Lets¬† stylise “sample webpage” as bold.

Steps to use Bold Tag in HTML Webpage:

<body>

This is a <b>sample webpage. This webpage is for practice purpose. I have successfully developed the webpage.

</body>

<body>

This is a <b>sample webpage</b>. This webpage is for practice purpose. I have successfully developed the webpage.

</body>

Bold Tag HTML Webpage

See in the image, sample webpage text is stylised as bold text.

Practice more. Do your own experiment. Try to bold entire text. And also try to bold individual text.