Flag This Hub

What Is HTML Code and How To Use IT?

By


What is HTML code and how do I use it?

HTML is a special computer language that is used to create web pages on the Internet. HTML stands for Hypertext Markup Language.

You can use HTML to add emphasis, colors and other types of formatting to your pages.

Text Tags

The following tags surround the words you would like to alter. For example, the tag to bold is <b></b>. You can bold a letter, a word or group of words on a line by themselves like this:

Bold a letter.

Bold a le<b>t</b>ter.

Bold these words

<b>Bold these words</b>

Use bold to emphasize a word.

Use bold to <b>emphasize</b> a word.

The letters within the tag can be upper or lower case or a combination. It does not affect the programming whichever letter case you decide to use.

Here is a list of HTML text tags:

Bold

<b></b>

Italics

<i></i>

Underline

<u></u>

Strike text

<strike></strike>

This is superscript.

<sup></sup>

This is subscript.

<sub></sub>

Heading Tags

This is a sample of big within a sentence.

<big></big>

Makes text larger than the surrounding text

This is a sample of small within a sentence.

<small></small>

Makes text smaller than the surrounding text

Font size 1, Font size 2, Font size 3, Font size 4, Font size 5, Font size 6, Font size 7

<font size=1></font>, <font size=2></font>,... <font size=7></font>

Red Font

<font color=red></font> or <font color=ff0000></font>

Font color code can be a color written out (for certain colors) or by using the hexadecimal system (all colors).

Note that it usually is not a good idea to use blue or purple color body text as those colors are associated with links.

Font Style

To change your font style, you just have to use the following code:

Text

<font face="courier, times new roman">Text</font>

where courier is your first choice text style and times new roman is your second choice. You should always include a second choice font in arial or times new roman. People on older browsers or who just happen to not have your first choice font on their computer will then see the text in your second choice. Arial and times new roman are very common and make very good second choice text styles.

Combining Font Codes

Instead of having to do coding like this:

<font color=blue><font style="verdana, arial"><font size=3>text</font></font></font>

you can combine font codes as follows:

<font color=blue style="verdana, arial" size=3></font>

you can also change the order like this:

<font style="verdana, arial" size=3 color=blue></font>

Spacing

To space your lines out, you can use the break tag <br> or the paragraph tag <p>. Both tags can be used by themselves.

The break tag in front of text, makes all text behind the tag begin at the next line.

The paragraph tag does the same thing as the break tag but adds an extra line of space. Basically just like you are starting a new paragraph.

Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)
Amazon Price: $22.70
List Price: $39.99
Build Your Own Web Site The Right Way Using HTML & CSS, 2nd Edition
Amazon Price: $12.00
List Price: $29.95
Adobe CS5.5 Design Premium Student and Teacher Edition
Amazon Price: $425.00
List Price: $1,899.00
Aperture 3
Amazon Price: $75.49
List Price: $199.00

hi 3 years ago

thanks

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working