The HTML <b> tag is used to make text bold.
Here's an example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Bold Tag Example</title>
</head>
<body>
<p>This is an example of using the <b>bold tag</b> in HTML.</p>
</body>
</html>
In this example:
- The text "This is an example of using the bold tag in HTML." is contained within a <p> (paragraph) element.
- The <b> tags are used to make the text "bold tag" bold.
- When you view this HTML document in a web browser, the text inside the <b> tags will be displayed in a bold font.
Keep in mind that the <b> tag is a presentational element, and for more semantic emphasis, it's often better to use the <strong> tag, which not only makes the text bold but also conveys that the text is of strong importance.