Latest web development tutorials

HTML body alink property

HTML body tag Reference Manual HTML <body> tag

Examples

The active link color of the document is set to green:

<P> <a href="http://www.w3big.com"> this tutorial </a> </ p>
<P> <a href="http://www.w3big.com/html/"> HTML tutorial </a> </ p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support alink property


Definition and Usage

HTML5 is no longer supported <body> alink property. Use CSS instead.

<Body> alink property is obsolete in HTML 4.01.

alink active color attribute specifies the document link (active link) of. licked).


Compatibility Notes

In HTML 4.01, the attribute is deprecated alink body element; in XHTML 1.0 Strict DTD not supported alink attribute body element. Use CSS instead.

CSS syntax (<head> section): <style> a: active {color: # 0000FF} </ style>

CSS Example: set the color of active links

In our CSS tutorial you can find more details about : active details pseudo-class.


grammar

<body alink="color_name|hex_number|rgb_number">

Property Value

value description
color_name Predetermined color is the color of the font color name (such as "red").
hex_number Predetermined color value is a hexadecimal value of font color (eg "# ff0000").
rgb_number Rgb color code is specified font color (such as "rgb (255,0,0)").


HTML body tag Reference Manual HTML <body> tag