Pounding a Link If you have a specific linking element that must use a specific, you can create a specific style for that link. To do this, in the style section, create each of the link pseudo-classes but its name must end with # and the name you will use for the id attribute. Here are examples: <!DOCTYPE html> <html> <head> <title>Biology</title> <style type="text/css"> a:link { color: Green; font-family: Arial; } a:active { color: Olive; font-family: Arial; } a:visited { font-family: Arial; color: Purple; } a:hover { font-family: Arial; color: Orange; } a:link#biotech { font-size: 14pt; color: Maroon; font-family: Georgia; } a:active#biotech { font-size: 14pt; color: Lime; font-family: Georgia; } a:visited#biotech { font-size: 14pt; color: Blue; font-family: Georgia; } a:hover#biotech { color: Red; font-size: 14pt; font-family: Garamond; } #bio-heading { font-size: 18pt; color: Green; font-family: Elephant; } #description { color: Navy; font-size: 12pt; font-family: Times New Roman, Garamond, serif; } </style> </head> <body> <h3 id="bio-heading">Biology</h3> <p id="description">Biology is the study of the existence of living organisms. Biology studies how the organisms start (such as how an organism is born), how they grow (or how they change from one state or phase to another), how they live, how they function, where they dwell, and how their existence ends (such as how they die). Biology can be divided in various fields of sudies. Examples are:</p> <ul> <li>Biophysics <li><a href="biochemistry.htm">Biochemistry</a> <li><a href="biotechnology.htm" id="biotech">Biotechnology</a> </ul> </body> </html> This would produce:
|