/

HTML / CSS / JavaScript Tutorial

HTML Formatting elements

[this page | pdf | back links]

The following is a list of HTML formatting elements:

 

Tag

Description

More

Further comments

<abbr>

Abbreviation or acronym

Here

 

<acronym>

Acronym

Here

Not supported in HTML 5

<address>

Contact information for the author or owner of a document

Here

 

<b>

Bold text

Here

 

<basefont>

Default font, colour and size of all text in a document

Here

Not supported in HTML 5 (instead use CSS)

<bdi>

Isolates a part of text that might be formatted in a different direction to other text outside that part

Here

New in HTML 5

<bdo>

Overrides the current text direction

Here

 

<big>

Big text

Here

Not supported in HTML 5 (instead use CSS)

<blockquote>

Section that is quoted from another source

Here

 

<center>

Centred text

Here

Not supported in HTML 5 (instead use CSS)

<cite>

Title of a work

Here

 

<code>

A piece of computer code

Here

 

<del>

Indicates text deleted from a document

Here

 

<dfn>

Defining instance of a term

Here

 

<em>

Emphasised text

Here

Often used to italicise text, but ideally this should be done using CSS

<font>

Font, colour and size of text

Here

Not supported in HTML 5 (instead use CSS)

<h1>, <h2>, <h3>, <h4>, <h5>, <h6>

HTML headings

Here

Provides a hierarchy of headings

<i>

A part of text in an alternate voice or mood

Here

 

<ins>

Indicates text added to a document

Here

 

<kbd>

Keyboard input

Here

 

<mark>

Marked/highlighted text

Here

New in HTML 5

<meter>

A scalar measurement within a specific range (a gauge)

Here

New in HTML 5

<p>

Paragraph

Here

 

<pre>

Preformatted text

Here

 

<progress>

Represents the progress of a task

Here

New in HTML 5

<q>

Short quotation

Here

 

<rp>

Indicates what to show in browsers that do not support ruby annotations

Here

New in HTML 5

<rt>

Explanation / pronunciation of characters

Here

New in HTML 5. For East Asian typography

<ruby>

Ruby annotation

Here

New in HTML 5. For East Asian typography

<s>

Text that is no longer correct

Here

 

<samp>

Sample output from a computer program

Here

 

<small>

Smaller text

Here

 

<strike>

Strikethrough text

Here

Not supported in HTML 5 (instead use <del> or <s>)

<strong>

Defines more important text

Here

Commonly used as another way of highlighting text or making it bold

<sub>

Subscripted text

Here

 

<sup>

Superscripted text

Here

 

<time>

Date / time

Here

New in HTML 5

<tt>

Teletype text

Here

Not supported in HTML 5 (instead use CSS)

<u>

Text that should be stylistically different from normal text

Here

Commonly used for underlining

<var>

Variable

Here

 

<wbr>

Posible line-break

Here

New in HTML 5

 

The default styles applicable to these elements are shown here. The behaviour of most formatting elements can be replicated using CSS.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile