HTML | <body> link Attribute
The HTML <body> link Attribute is used to specify the default color for a unvisited link in a document.
Syntax:
<body link="color_name|hex_number|rgb_number">
Attribute Values:
- color_name: It is used to specifies the name of the color of the unvisited link.
- hex_number: It is used to specifies the color of the unvisited link in terms of hex code.
- rgb_number: It is used to specifies the color of the unvisited link in terms of RGB value.
Example:
<!DOCTYPE html> <html> <head> <title> HTML body link Attribute </title> </head> <body link = "red"> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h2>HTML <body> link Attribute</h2> <a href="#"> A computer science portal for geeks </a> </center> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <body> link attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | <link> hreflang Attribute
- HTML | <link> target Attribute
- HTML | <link> href Attribute
- HTML | <link> charset Attribute
- HTML | <link> sizes Attribute
- HTML | <link> Tag
- HTML | DOM Link rel Property
- HTML | DOM Link Object
- HTML | DOM Link href Property
- HTML | DOM Link hreflang Property
- HTML | DOM Link disabled Property
- HTML | DOM Link sizes Property
- HTML | DOM Link type Property
- How to create an HTML button that acts like a link?
- HTML | <img> src Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



