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

Definition

The <strong> tag is used to strongly emphasise our content.

Example


<strong>This text will be strongly emphasised.</strong>

Required Attributes

NONE

Optional Attributes

NONE

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<strong class="classname">Strongly emphasised text here</strong>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<strong id="idname">Strongly emphasised text here</strong>

style - specifies an inline style for the element allowing you to apply the style to the content.


<strong style="color:red;text-align:left">Strongly emphasised text here</strong>

title - specifies extra information about the content.


<strong title="information about the content">Strongly emphasised text here</strong>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<strong dir="ltr">Strongly emphasised text here</strong>

<!-- The text will flow from right to left -->
<strong dir="rtl">Strongly emphasised text here</strong>

lang - specifies a language code for the content of the element.


<strong lang="en">Strongly emphasised text here</strong>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<strong xml:lang="fr">Strongly emphasised text here</strong>

Document Event Attributes

NONE

Form Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<strong onkeydown="go()">Strongly emphasised text here</strong>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<strong onkeypress="go()">Strongly emphasised text here</strong>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<strong onkeyup="go()">Strongly emphasised text here</strong>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<strong onclick="go()">Strongly emphasised text here</strong>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<strong ondblclick="go()">Strongly emphasised text here</strong>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<strong onmousedown="go()">Strongly emphasised text here</strong>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<strong onmousemove="go()">Strongly emphasised text here</strong>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<strong onmouseout="go()">Strongly emphasised text here</strong>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<strong onmouseover="go()">Strongly emphasised text here</strong>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<strong onmouseup="go()">Strongly emphasised text here</strong>

go to home page Homepage go to top of page Top