Text
Formatting Tags
Tags |
Description |
<b> |
Defines Bold Text |
<big> |
Defines Big Text |
<em> |
Defines Emphasised Text |
<i> |
Defines Italic Text |
<small> |
Defines Small Text |
<strong> |
Defines Strong Text |
<sub> |
Defines Subscripted Text |
<sup> |
Defines Superscripted Text |
<ins> |
Defines Inserted Text |
<del> |
Defines Deleted Text |
"Computer Output" Tags
Tags |
Description |
<code> |
Defines computer code text |
<kbd> |
Defines keyboard text |
<samp> |
Defines sample computer code |
<tt> |
Defines teletype text |
<var> |
Defines a variable |
<pre> |
Defines preformatted text |
Citations, Quotations, and Definition Tags
Tags |
Description |
<abbr> |
Defines an abbreviation |
<acronym> |
Defines an acronym |
<address> |
Defines an address element |
<bdo> |
Defines the text direction |
<blockquote> |
Defines a long quotation |
<q> |
Defines a short quotation |
<cite> |
Defines a citation |
<dfn> |
Defines a definition term |
Text Formatting
This example demonstrates how you can format text in an HTML document.
Preformatted text
This example demonstrates how you can control the line breaks and spaces
with the pre tag.
"Computer output" tags
This example demonstrates how different "computer output"
tags will be displayed.
Address
This example demonstrates how to write an address in an HTML document.
Abbreviations and Acronyms
This example demonstrates how to handle an abbreviation or an acronym.
Text direction
This example demonstrates how to change the text direction.
Quotations
This example demonstrates how to handle long and short quotations.
Deleted and Inserted Text
This example demonstrates how to mark a text that is deleted or inserted
to a document.