1. Technology

<strong></strong>

Add Strong Emphasis to HTML Text

By

This text is bold

A demonstration of the STRONG tag in action

Image courtesy J Kyrnin licensed to About.com

< Previous | HTML 4.01 Tags | XHTML 1.0 Elements | Next >

Free HTML Class | HTML Validators

What is the STRONG Tag?

The STRONG tag provides stronger emphasis for the enclosed text. Most browsers render STRONG content as bold.

While the STRONG tag is not deprecated, if all you want is for your text to be bold, but you don't care about it's emphasis semantically, you should use the font-weight CSS style property.

STRONG Web Browser Support:

HTML Versions

STRONG Attributes:

Global attributes and event attributes.

STRONG End Tag:

</strong> REQUIRED

STRONG Contents:

CDATA Usually plain text. The following tags are valid within the STRONG tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

STRONG Valid Context:

The STRONG tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

STRONG Usage:

Standard strong emphasis

This is <strong>stronger emphasized text</strong>.

Use CSS instead:

This is <span style="font-weight: bold;">stronger emphasized text</span>.

STRONG Special Notes:

  • Most browsers display the strong tag in bold, but if you write something that must be bold (rather than strongly emphasized), use the font-weight style property.
  • You may be tempted to use the B tag in place of the STRONG tag, but this tag is deprecated in HTML4.

More STRONG Information:

< Previous | HTML 4.01 Tags | XHTML 1.0 Elements | Next >

Free HTML Class | HTML Validators

©2014 About.com. All rights reserved.