Boldface
Use the <strong> or <b>
tag to format bold text. It can be used in conjunction with other
tags (italic, underline, etc.). The <strong>
tag is preferred for ADA compliance (Americans with Disabilities
Act). Whereas both tags produce a bold word on the screen, the <strong>
tag also tells screen-reading software to emphasize the word.
The code requires an opening and a closing tag:
<strong> - opening tag
</strong> - closing tag
All text between the opening and closing tags will be bold. The
tag has no other effect on non-text elements.
CODE EXAMPLE:
When viewing this example, you will <b>clearly</b>
see how the BOLD and STRONG tags produce <strong>the same
result</strong>.
RESULT:
When viewing this example, you will clearly see how the
BOLD and STRONG tags produce the same result.
|