HTML <strong> tagS2C Home   « HTML <strong> tag

Definition

The <strong> tag is used used for marking content with strong importance, seriousness, or urgency.

Importance: The <strong> tag can be used in a headings, captions, or paragraphs to distinguish the part that matters.

Seriousness: The <strong> tag can be used for caution and warning notices.

Urgency: The <strong> tag can be used for text that needs to be seen first.

If text just needs to be emboldened and isn't of significant importance use the <b> tag for this purpose.

Example


<p>Free Coffee!! <strong>Caution: May be hot.</strong>

Free Coffee!! Caution: May be hot.

Attributes

The following attributes can be used with the <strong> tag.


<code> Specific Attributes
Attribute Value Description Example
There are no required or optional attributes specific to the <strong> tag.
<strong> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<strong class="name">Strong Importance Text</code>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<strong id="name">Strong Importance Text</code>
styleSpecifies an inline style for the element allowing you to apply the style to the contentt.

<strong style="color:red;">Strong Importance Text</code>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<strong title="Content info">Strong Importance Text</code>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<strong accesskey="a">Strong Importance Text</code>
tabindexSpecifies a tab order for the element.

<strong tabindex="1">Strong Importance Text</code>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<strong dir="ltr">Strong Importance Text</code>
<!-- The text will flow from right to left -->
<strong dir="rtl">Strong Importance Text</code>
langSpecifies a language code for the content of the element.

<strong lang="en">Strong Importance Text</code>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the contentt.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<strong spellcheck="true">Strong Importance Text</code> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<strong translate="no">Strong Importance Text</code> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<strong contenteditable="true">Strong Importance Text</code> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<strong draggable="true">Strong Importance Text</code>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<strong hidden>Strong Importance Text</code> 
<strong hidden="hidden">Strong Importance Text</code> 
<strong> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<strong oncopy="go()">Strong Importance Text</code> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<strong oncut="go()">Strong Importance Text</code>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<strong onpaste="go()">Strong Importance Text</code>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<strong ondrag="go()">Strong Importance Text</code>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<strong ondragend="go()">Strong Importance Text</code>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<strong ondragenter="go()">Strong Importance Text</code>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<strong ondragleave="go()">Strong Importance Text</code>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<strong ondragover="go()">Strong Importance Text</code>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<strong ondragstart="go()">Strong Importance Text</code>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<strong ondrop="go()">Strong Importance Text</code>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<strong onblur="go()">Strong Importance Text</code>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<strong onchange="go()">Strong Importance Text</code>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<strong oncontextmenu="go()">Strong Importance Text</code>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<strong onfocus="go()">Strong Importance Text</code>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<strong oninput="go()">Strong Importance Text</code>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<strong oninvalid="go()">Strong Importance Text</code>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<strong onreset="go()">Strong Importance Text</code>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<strong onselect="go()">Strong Importance Text</code>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<strong onsubmit="go()">Strong Importance Text</code>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<strong onkeydown="go()">Strong Importance Text</code>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<strong onkeypress="go()">Strong Importance Text</code>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<strong onkeyup="go()">Strong Importance Text</code>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<strong onabort="go()">Strong Importance Text</code>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<strong oncanplay="go()">Strong Importance Text</code>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<strong oncanplaythrough="go()">Strong Importance Text</code>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<strong oncuechange="go()">Strong Importance Text</code>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<strong ondurationchange="go()">Strong Importance Text</code>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<strong onemptied="go()">Strong Importance Text</code>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<strong onended="go()">Strong Importance Text</code>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<strong onloadeddata="go()">Strong Importance Text</code>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<strong onloadedmetadata="go()">Strong Importance Text</code>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<strong onloadstart="go()">Strong Importance Text</code>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<strong onpause="go()">Strong Importance Text</code>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<strong onplay="go()">Strong Importance Text</code>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<strong onplaying="go()">Strong Importance Text</code>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<strong onprogress="go()">Strong Importance Text</code>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<strong onratechange="go()">Strong Importance Text</code>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<strong onseeked="go()">Strong Importance Text</code>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<strong onseeking="go()">Strong Importance Text</code>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<strong onstalled="go()">Strong Importance Text</code>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<strong onsuspend="go()">Strong Importance Text</code>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<strong ontimeupdate="go()">Strong Importance Text</code>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<strong onvolumechange="go()">Strong Importance Text</code>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<strong onwaiting="go()">Strong Importance Text</code>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<strong onclick="go()">Strong Importance Text</code>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<strong ondblclick="go()">Strong Importance Text</code>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<strong onmousedown="go()">Strong Importance Text</code>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<strong onmousemove="go()">Strong Importance Text</code>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<strong onmouseout="go()">Strong Importance Text</code>>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<strong onmouseover="go()">Strong Importance Text</code>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<strong onmouseup="go()">Strong Importance Text</code>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<strong onwheel="go()">Strong Importance Text</code>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<strong onscroll="go()">Strong Importance Text</code> 
Window - NONE

Relevant HTML Tutorials

HTML Basics - Inline Semantics