HTML Web Page Link Colors

 

HTML Web Page Link Colors

You can specify the link colors within an HTML web page.

The BODY tag follows the HEAD tag within an HTML web page document. The contents of your web page is displayed between the BODY tags. This includes everything displayed when viewed through a web browser.

You can specify the link colors within an HTML web page by adding the LINK, ALINK, and VLINK attributes to your HTML BODY tag.

 
However, including these attributes within your HTML BODY tag is only necessary if you would like to display your link colors in any color other than the default.

Please keep in mind, changing the HTML link colors is not recommended, as the default HTML link colors is what your visitors are used to.

LINK – Linked text
ALINK – Active link
VLINK – Visited link

HTML Background Colors

Copy and paste the HTML link attributes into the BODY tag of your HTML code.

<body link="#0000c0" alink="#0000ff" vlink="#ff0000">

CSS Background Colors

You can also use CSS to specify a web page background color.

Place the following code between your <head> and </head> tags within your HTML.

<style type="text/css">
a:link {color:#ff4040;}
a:active {color:#800080;}
a:visited {color:#4040ff;}
</style>

 

Although you can specify the link colors within an HTML web page, it is always best to leave the link colors at their default setting, as this is what your visitors are used to. Changing the colors may confuse them.

For additional information on HTML codes, visit the HTML Tutorial section.

For additional information on CSS codes, visit the CSS Tutorial section.

This concludes the HTML Web Page Link Colors code.

 

 

 
Visit the following pages for a wealth of copy and paste codes and tips:

HTML Tips
Copy and paste special effect HTML codes for your web page.

HTML Codes
An HTML codes chart you can use to copy and paste codes into your web page.

HTML Color Codes
An HTML color codes chart you can use to copy and paste color codes into your web page.

JavaScript Codes
Copy and paste special effect JavaScript codes for your web page.

Web Design Tips
Tips, tricks, and special effect codes for your web page.

HTML Tags
A list of HTML tags.

HTML 5 Tags
A list of the latest HTML tags to be developed.

ASCII Codes
Special text characters and code for your web page.