HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <strong> tag

The HTML <strong> element indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.

Run code

Typically this element is displayed in bold type. However, it should not be used simply to apply bold styling; use the <b> element or CSS font-weight property for that purpose.

<b> vs <strong>

New developers are often confused at seeing multiple elements that produce similar results. <b> and <strong> are a common example, since they both render the contents in bold type. What's the difference? Which should you use?

By default, the visual result is the same. However, the semantic meaning is different.

The <strong> element is for content that is of greater importance, while the <b> element is used to draw attention to text without indicating that it's more important.

Browser compatibility

The <strong> element is fully supported by all browsers:

Element
<strong> yes yes yes yes yes



Standard Attributes

The <strong> tag does not support any standard attributes. See HTML Standard Attributes Reference

Global Attributes

The <strong> tag supports the global attributes described in HTML Global Attributes Reference

Event Attributes

The <strong> tag supports the event attributes described in HTML Events Reference

Last updated: Monday 01 Oct, 2018