A hyperlink establishes a link between different web objects or parts of the same web document. A link (link) can be a part of the text or an image. If you want to diversify the site design, you can change the style of the links.
Instructions
Step 1
The content of a web page that visitors see is between the opening and closing tags. In the same container, you need to set the link style parameters. Link color is determined by the attributes of this tag: - link - link in the text; - alink - link when clicking the mouse; - vlink - visited link.
Step 2
The color can be specified as an RGB hexadecimal number (RedGreenBlue) or written as text in English. To select shades, it is convenient to use the table of safe colors https://www.artlebedev.ru/tools/colors/ Before the digital code, put a hash sign #, and enclose the value of the attribute in quotes:
Step 3
To make a link a part of the text, use a tag (from the English ancor - "anchor") with the href attribute: This part of the text can be made a link to this useful table
Step 4
If you use the title attribute of the tag, you can create a tooltip - it will appear when you hover over the link: This part of the text can be made a link to this useful table
Step 5
If you want to highlight a link in color, use the tag and its color attribute for this: This part of the text can be made a link to this useful table To make the color of the link stand out from the rest of the links in the text, the tag must be inside the tag.
Step 6
You can link to an image. In this case, a picture is used instead of text. Accordingly, the code snippet includes the tag
and its src attribute: Check out my photo album