HTML Text Examples

Back to HTML Examples List

This page contains HTML examples of text - examples of text-specific code that you can use for your own website.

To use the code, copy it straight from the text box and paste it into your own website. Feel free to modify it as required.

CodeResult

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
More info: <h1>, <h2>, <h4>, <h4>, <h5>, and <h6>.
CodeResult

Normal paragraph text.

More info: HTML <p> tag
CodeResult

I feel a line break coming...
...up.
More info: <br>
CodeResult

Bold text.
More info: <b>
CodeResult

Italic text.
More info: <i>
CodeResult

Color text and another color, and now back to the same. Oh, and here's a different background color just in case you need it!

CodeResult

Text size using points.

Text size using pixels.

Text size using relative sizes.

CodeResult

Preferred serif font.

CodeResult

Preformatted text 
displays just 
  as you 
type it...
  ...line breaks,
   spaces... 
  ...and all!	
More info: <pre>
CodeResult

Teletype text - sometimes referred to as typewriter text.
More info: <tt>
CodeResult

Citation text.
More info: <cite>
CodeResult

Emphasized text.
More info: <em>
CodeResult

Code text.
More info: <code>
CodeResult

Big text.
More info: <big>
CodeResult

Small text.
More info: <small>
CodeResult

Here's a blockquote:

Contents should not be swallowed. This is due to the enormous amount of harmful chemicals that has gone into this burger.

That was a blockquote.

More info: <blockquote>
CodeResult

Delete this text.
More info: <del>
CodeResult

Insert this text.
More info: <ins>
CodeResult

Keyboard text - text to be entered by the user.
More info: <kbd>
CodeResult

Quotation text.
More info: <q>
CodeResult

Sample text (output from a computer program).
More info: <samp>
CodeResult

Variable text.
More info: <var>
CodeResult

Definition.: To define the meaning of a word, phrase or term.
More info: <dfn>

Enjoy this page?

Sponsored Link: Design CODE-FREE Websites

Check a Domain:

ZappyHost Logo
Webydo Banner Ad