HTML Text Codes

This provides you with HTML text codes that you can use to copy/paste into your own website.

Specifying Font Family

The following text code specifies a choice of 3 fonts to use in case the user doesn't have the 1st (or 2nd) choice. Using either 'serif' or 'sans-serif' as the last option is usually a good idea, as most computers will be able to recognise that.

The above code results in this:

This text has been styled using CSS code.

Text Size

You can change the size of the text by using the font-size property:

The above code results in this:

This text has been styled using CSS code.

Text Color

You can change the color of the text by using the color property:

The above code results in this:

This text has been styled using CSS code.

Bold Text

You can make your text bold by using the font-weight property:

The above code results in this:

This text has been styled using CSS code.

Italic Text

You can make your text italic by using the font-style property:

The above code results in this:

This text has been styled using CSS code.

More Text Code

In HTML, text is styled using CSS (as the above examples show). There are many other CSS properties you can use to style your web pages. Here's a full list of the CSS Properties you can use to style your web pages.

In particular, the following properties are used for styling your text: