• home
  • forum
  • my
  • kt
  • download
  • Colorizing text, links, visited links

    Author: 2007-07-31 16:36:51 From:

    Text Color Codes

    In order to change text colors, you will need two things:

    1. A command to change the text.
    2. A color (hex) code.

    The color codes, as I said above, are technically called hex codes. Use that term at your next cocktail party and impress the hostess. The codes are not too user friendly, and you'll need a chart to tell you what code makes what color. Well, gosh! I happen to have one right here: Click to go.
    So You Want A Color Code, Huh?
    Drop by, grab a six-digit color code, and come on back.

    Section 1: Changing Full-Page Text Colors

    You have the ability to change full-page text colors over four levels:

    <TEXT="######"> -- This denotes the full-page text color.

    <LINK="######"> -- This denotes the color of the links on your page.

    <ALINK="######"> -- This denotes the color the link will flash when clicked upon.

    <VLINK="######"> -- This denotes the colors of the links after they have been visited.

    These commands come right after the <TITLE> commands. Again, in that position they affect everything on the page. Also... place them all together inside the same command along with any background commands. Something like this:
    < BODY BGCOLOR="######" TEXT="######" LINK="######" VLINK="######">

    Please note: When you write these codes, you can write them with a # sign in front of the hex code or not. It used to be that that was required, but not any more. I still use it just because I started that way. You may want to just go with the six-digit code. Also make sure to place a space between each command and be sure to enclose it in quotation marks, like so:
    <VLINK="#FFFFFF">

    Section 2: Changing Specific Word Color

    But I only want to change one word's color!

    You'll use a color (hex) code to do the trick. Follow this formula:

    <FONT COLOR="######">text text text text text</FONT>
    It's a pain in the you-know-where, but it gets the job done. It works with all H commands and text size commands. Basically, if it's text, it will work.

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      htaccess (0)
      Advanced (3)
      Backgrounds (0)
      Buttons (4)
      Colors (9)
      Forms (15)
      Frames (6)
      Getting Started (36)
      HTML4 (2)
      Image Maps (5)
      Images (17)
      References (5)
      Tables (8)

    New

    Hot