Copyright © tutorialspoint.com
Phrase elements add structural information to text fragments. The usual meanings of phrase elements are following:
<abbr> | Indicates an abbreviated form like pvt. inc. etc. |
<acronym> | Indicates an acronym (e.g., WAC, radar, etc.). |
<em> | Indicates emphasis. |
<strong> | Indicates stronger emphasis. |
<cite> | Contains a citation or a reference to other sources. |
<dfn> | Indicates that this is the defining instance of the enclosed term. |
<code> | Designates a fragment of computer code. |
<samp> | Designates sample output from programs, scripts, etc. |
<kbd> | Indicates text to be entered by the user. |
<var> | Indicates an instance of a variable or program argument. |
NONE
<abbr>pvt. or inc.</abbr><br /> <acronym>HTML</acronym><br /> <cite>Citation</cite><br /> <em>Emphasized text</em><br /> <strong>Strong text</strong><br /> <dfn>Definition term</dfn><br /> <code>Computer code text</code><br /> <samp>Sample computer code text</samp><br /> <kbd>Keyboard text</kbd><br /> <var>Variable</var><br /> |
This will produce following result:
pvt. or inc. HTML Citation Emphasized text Strong text Definition term Computer code text Sample computer code text Keyboard text Variable |
To Become more comfortable - Do Online Practice
Attribute | Description |
---|---|
class | Document wide identifier |
dir | Specifies the direction of the text |
id | Document wide identifier |
title | Specifies a title to associate with the element. |
style | Helps to include inline casecadubf style sheet. |
lang | Sets the language code. |
Attribute | Description |
---|---|
onclick | Script runs when a mouse click |
ondblclick | Script runs when a mouse double-click |
onmousedown | Script runs when mouse button is pressed |
onmouseup | Script runs when mouse button is released |
onmouseover | Script runs when mouse pointer moves over an element |
onmousemove | Script runs when mouse pointer moves |
onmouseout | Script runs when mouse pointer moves out of an element |
onkeypress | Script runs when key is pressed and released |
onkeydown | Script runs when key is pressed |
onkeyup | Script runs when key is released |
Copyright © tutorialspoint.com