Get "www.yourname.com" for your MySpace page. Learn how >>.

With every domain name you register with ZappyHost, you get free (ad supported) hosting AND online website builder.

PLUS you get:

  • Quick Blogcast
  • Starter Web Page
  • Email Account
  • & much more! (Total value $123 for FREE!)

Get your FREE hosting today! >>

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:

Enjoy this site?

  • Add this page to your Favorites
  • Link to this page from your website
  • Add this page to your favorite social bookmarks sites:      

Thanks for supporting Code-Generator.net!

Privacy Policy