If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
The <strong> Tag in HTML 5
The <strong> tag indicates that the content has increased importance for some reason. The strong element is one of the phrase elements in HTML. The appearance of text enclosed within a strong
element is often rendered with a bold font, the same as for the HTML <b> tag, which does not imply increased importance.
<strong> Tag Syntax
Rules for coding HTML strong
elements
<body> ... ... phrasing content expected ...<strong>... phrasing content ...</strong>... ... </body>
Rules for coding the HTML strong
element
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the strong element for strong emphasis where phrasing content is expected.
- Begin the strong element with a starting <strong> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <strong> tag as appropriate.
- Inside the strong element, between the starting
<strong>
tag and the ending</strong>
tag, code the inner HTML phrasing content. - End the strong element with a matching
</strong>
closing tag.
Content Model
Content of the strong element
The content of the strong element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.
<strong> Tag Attributes
Attributes of the <strong> tag
global attributes | The only attributes that can be coded on the <strong> tag are the common HTML attributes. |
<strong> Tag Examples
Examples of the strong
tag in HTML 5
Changes in HTML 5 - <strong> Tag
What's new in HTML 5
Differences between HTML 5 and earlier versions of HTML
The 2000-2010 Recommendations from the W3C HTML Working Group defined the HTML namespace for the strong element type name along with the names of all HTML element types. In older (pre-2000) versions of HTML, element type names were not associated with a namespace.