In HTML, a phrase tag is used to indicate that a block of text has structural meaning, though they are displayed in a similar way as other tags.
You can abbreviate a text by using
title attribute can provide an expansion or description for the abbreviation.
<abbr title="Hypertext Markup Language">HTML</abbr>
The HTML Definition (
<dfn>) element allows you to specify that you are introducing a special term.
It's usage is similar to italic words in the midst of a paragraph.
<p><dfn>PHP</dfn> is used to create dynamically generated web pages.</p>
<code> element indicate that the text is a short fragment of computer code.
By default, the text is displayed using the browser's default monospace font.
<p>The function <code>selectAll()</code> highlights all the text in the input field.</p>
If you are quoting a text, you can indicate the source placing it between an opening
<cite> tag and closing
As you would expect in a print publication, the content of the
<cite> element is rendered in italicized text by default.
<p>More information can be found in <cite>[ISO-5000]</cite>.</p>
You will learn more about quotations in the next chapter.
When you are talking about computers, if you want to tell user to enter some text, you can use the
<kbd> element to indicate what should be typed in.
<p>Use <kbd>ctrl + c</kbd> to copy and <kbd>ctrl + v</kbd> to paste.</p>
<var> element represents the name of a variable in a mathematical expression or a programming context.
It's typically presented using an italicized version of the current typeface.
<p>A simple equation: <var>x</var> = <var>y</var> + 3</p>
The HTML Sample output (
<samp>) element indicates sample output from a program, and script etc.
It is mainly used when documenting programming or coding concepts.
<p><samp>Keyboard not found <br> Press F1 to continue</samp></p>
HTML has an element for marking up contact details -
<address>. This simply wraps around your contact details.
Email: <a href="mailto:firstname.lastname@example.org">email@example.com</a>
|<abbr>||Represents an abbreviation|
|<address>||Represents an address|
|<cite>||Specifies a citation|
|<code>||Defines a piece of computer code|
|<dfn>||Specifies a special term|
|<em>||Renders as emphasized text|
|<kbd>||Defines keyboard input|
|<samp>||Defines sample output from a computer program|
|<strong>||Defines important text|
|<var>||Defines a variable|