HTML Text Examples
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.
| Description | Code | Result |
|---|---|---|
| Headings | Heading 1Heading 2Heading 3Heading 4Heading 5Heading 6 |
|
| Paragraphs | Normal paragraph text. |
|
| Line Break | I feel a line break coming... ...up. |
|
| Bold Text | Bold text. | |
| Italic Text | Italic text. | |
| Color Text | Color text. |
|
| Text Size | Text size using points. Text size using pixels. Text size using relative sizes. |
|
| Font Family | Preferred serif font. |
|
| Preformatted Text | Preformatted text displays just as you type it... ...line breaks, spaces and all! |
|
| Teletype Text | Teletype text - sometimes referred to as typewriter text. | |
| Citation Text | Citation text. | |
| Emphasized Text | Emphasized text. | |
| Code Text | Code text. |
|
| Big Text | Big text. | |
| Small Text | Small text. | |
| Blockquote | The label says:Contents should not be swallowed. This is due to the enormous amount of harmful chemicals that has gone into this burger. |
|
| Deleted Text | ||
| Inserted Text | Insert this text. | |
| Keyboard Text | Keyboard text - text to be entered by the user. | |
| Quotation Text | Quotation text. |
|
| Sample Text | Sample text (output from a computer program). | |
| Variable Text | Variable text. | |
| Definition | Definition.: To define the meaning of a word, phrase or term. |
