top image
Text/Font
id: 2
Category: HTML
Rated:Rating 0 Rating 1 Rating 2 Rating 3 Rating 4
Rate:



Text is found on all pages, regardless of the site. However, sometimes you want to change the colors, type, family, size, and underlined or bold/italic. But how do we do this?

Seeing as making text bold, italic, or underlined is the most common change with text, we'll go over this first:

Underlined:
<u>underlined</u>

Bolded:
<b>bolded</b>

Italic:
<i>italic</i>
<em>italic</em>

You'll notice it’s the first letter of the property changed. (em also makes text italic.) By property change I mean: changing the appearance of the text in some way making it look different from the standard text. The way it starts is also the way it ends. All you do with these tags is add / before the letter in the "< >"

By adding a slash in the last tag you are ending the tag. It tells the browser "Any text from <b> to </b> is going to be bold. Nothing past </b> should be bold."

Sometimes people wish to change the color, whether it be to make something stand out or just to have a more unique layout. While it's not advised to use this for an entire page, you could try if you wanted.

<font color="color">Text here</font>

Easiest way to have multiple things for text changed at once would (at least using HTML) be this code:

<font color="#000000" size="5" style="arial, tahoma">Text here.</font>

It will look like this.

It's suggested that for a font you add a secondary (and sometimes 3rd) font family (Arial, Tahoma) in case someone viewing your site doesn't have that font.

This is basic properties of text. I would suggest for a whole page that you use CSS. Working with Text // CSS It's simple enough, and it will make working with colors for Bold text and normal text etc. much easier and faster!




Disclaimer

All contents are © Dice.
If credit for anything is missing please contact me and it will be added. If there is something you wish me to take off the site (that belongs to you) contact me. It will be removed immediatly.

Basic Rules

All tutorials on this site were written by me, Dice. They may not be redistributed without permission! Feel free to link to the videos.

I have used this site also for a project in college :3



home page

Contact Us

About Us