HTML Tags

HTML <strong> Tag

Topic: HTML5 Tags ReferencePrev|Next

Description

The <strong> tag specifies enclosed text as strongly emphasized text.

The following table summarizes the usages context and the version history of this tag.

Placement: Inline
Content: Inline and text
Start/End Tag: Start tag: required, End tag: required
Version: HTML 2, 3.2, 4, 4.01, 5; XHTML 1.0, 1.1

Difference between <strong> and <b> tag

  • Both tags renders the text it encloses in a bold typeface, but the <strong> element which represents text of certain importance, the <b> tag doesn't convey any semantic information about the contained text.

  • It is strongly recommended to avoid the use of <b> tag; using CSS property font-weight with bold value would be a better choice for making the text bold.


Syntax

The basic syntax of the <strong> tag is given with:

HTML / XHTML: <strong> ... </strong>

The example below shows the <strong> tag in action.

<p><strong>Warning!</strong> This is <strong>very dangerous</strong></p>

Tag-Specific Attributes

The <strong> tag doesn't have any specific attribute.


Global Attributes

Like all other HTML tags, the <strong> tag supports the global attributes in HTML5.


Event Attributes

The <strong> tag also supports the event attributes in HTML5.


Browser Compatibility

The <strong> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 2+
  • Apple Safari 1+
  • Opera 2.1+

Further Reading

See tutorial on: HTML Text Formatting, CSS Fonts.

Related tag: <b>.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties