The JMBG Logo Welcome to
The JMBG Network
colour scheme: Grey Purple Blue Green Orange Red
You are currently not logged in.
reference & tutorials    >    HTML / XHTML    >    More Text & Formatting

HTML / XHTML More Text & Formatting

Elements for Formatting Text

There are various elements that can be used for formatting text. However, it is always best to use the style attribute or CSS to specify how your elements should appear as different browsers will interpret and display code differently. Below are some examples of different types of elements you may want to use. Please note that in the example a <br /> tag is included to make each element appear on its own line. These elements are NOT 'block' elements by default and will not create line breaks automatically.


Code:

Result:

<b>bold text</b><br />
<big>big text</big><br />
<cite>citation text</cite><br />
<code>code text</code><br />
<del>deleted text</del><br />
<dfn>definition text</dfn><br />
<em>emphasized text</em><br />
<i>italic text</i><br />
<ins>inserted text</ins><br />
<kbd>keyboard text</kbd><br />
<samp>sample text</samp><br />
<small>small text</small><br />
<strong>strong text</strong><br />
<sub>subscripted text</sub><br />
<sup>superscripted text</sup><br />
<tt>teletype text</tt><br />
bold text
big text
citation text
code text
deleted text
definition text
emphasized text
italic text
inserted text
Keyboard text
sample text
small text
strong text
subscripted text
superscripted text
teletype text
The JMBG Network - 45 Madison Ave N Suite 1, Kitchener, ON CA N2H2Z5
Copyright JMBG 2006-2008