This is a Premium Blog

Formatting Text

Written on June 15, 2007 by admin

This tutorial will show you how to change the default font sizes, colors, faces, etc, of your website or page.

By default, the text of your homepage is black with verdana font. How about if you want to change the color and font face? It easy, you just need to add <font> with attribute in front of your text that you want to changed.
An attribute is a string of text which, when inserted inside of a tag, will alter the tag in some way.

For Example:

HTML:
  1. <font color="blue">Text</font>

Don't forget to close the tag!

The text above is blue because of the color attribute. You can also use size - which, of course, sets the size of the text... and face - which sets the font type (I.E. verdana, arial, tahoma, etc...) attributes. For the size attribute, you can use 1-7; 1 is the smallest, 7 is the biggest For the face attribute, you can use the name of the font, such as "times new roman", "arial", "verdana", etc.

Writing Tag
You can compile attributes and put them all in the same tag as long as they are attributes of that tag. Below are two examples; one of complied attributes, and the other of non-compiled attributes.

HTML:
  1. <font color="red" size="4" face="arial">Some Text</font>

OR

HTML:
  1. <font color="red"><font size="4"><font face="arial">Some Text</font></font></font>

Another Tag

HTML:
  1. <b>This makes the text bold</b>
  2. <i>This makes the text italic</i>
  3. <u>This underlines the text</u>
  4. <p>This makes a new paragraph</p>
  5. <br>This makes a line break

If you enjoyed this post Subscribe to our feed

Leave a Reply