Page 58 - CA 165 ver 1.0 Class 10
P. 58
LINK, ALINK and VLINK Attributes
On a web page, there are different types of links like:
LINK which has not yet been visited.
ALINK or Active Link which is in current use in a web page
VLINK or Visited Link which was visited last
The above three links can be assigned different colour attributes. The default colours for LINK, ALINK and
VLINK are blue, red and purple respectively. The syntax of these attributes are as follows:
<BODY LINK= “COLOR NAME” ALINK = “COLOR NAME ” VLINK = “COLOR NAME”>
For example:
<BODY BGCOLOR = “Aqua” TEXT = “Red” LINK = “Yellow” VLINK = “Maroon” ALINK
= “Green” >
The above example sets colours for the background, text, links, visited links and active links as aqua, red,
yellow, maroon and green respectively. LINK, ALINK and VLINK are not supported in HTML5 web version.
Lab Assignment ‘n Activity Subject Enrichment
Complete the following activities and tick on the circle.
Type the following HTML codes in a text editor and check the effects in a web browser:
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
</HTML>
Type the following HTML codes in a text editor and check the effects in a web browser:
<HTML>
<HEAD>
<TITLE> MY FIRST HTML DOCUMENT.
</TITLE>
</HEAD>
</HTML>
Type the following HTML codes in a text editor and check the effects in a web browser:
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR = “RED” TEXT = “BLUE” > Hello, I am a student of
Class X.
</BODY>
</HTML>
Write HTML codes to display your School’s Logo in the background of web page.
Write HTML codes to display your personal details in the Web page with Background in
‘Blue’ and ‘Text’ in White colour.
56 Touchpad Computer Applications-X

