Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

HTML element: b

The utilitarian-attention element marks text that needs practical recognition without adding importance or stress emphasis.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<b>utilitarian keyword</b>

b suits keywords, a product name, or actionable words; use strong for importance, em for stress, mark for current relevance, and i for an alternate voice.

Authors should use b only when no more semantic element describes the purpose, and can add a class that explains the kind of attention.

Browsers commonly render b in bold, but appearance and font-weight belong to CSS; bold styling alone does not create its normative meaning.

The example marks a product name and status with b, confirms that no strong occurs, and reads both labels through textContent.

Examples

<!doctype html>
<meta charset="utf-8">
<p id="review">Product: <b id="product">CK-40</b>; status: <b id="status">in stock</b>.</p>
<output id="result"></output>
<script>
const labels = [...document.querySelectorAll("#review b")];
const productName = document.querySelector("#product");
const stockStatus = document.querySelector("#status");
document.querySelector("#result").textContent = `b=${labels.length}; strong=${document.querySelectorAll("#review strong").length}; product=${productName.textContent}; status=${stockStatus.textContent}; parent=${productName.parentElement.id}`;
</script>

Result

b=2; strong=0; product=CK-40; status=in stock; parent=review

The result verifies two utilitarian annotations in the DOM; it does not prove assistive pronunciation or a particular typeface.

Sources