Links


Links

Links are hyperlinks which means we can move from one page to another. Links can be in the form of text or an image or any other HTML element. Link color- It’s meaning

Blue - Unvisited link

Purple - Visited link

Red - Active link

Syntax

< a href=”url”>Text which is clicked< /a>

Here anchor(a) tag is used for displaying something as a link. Href is the hyper reference which is the destination address which is displayed after clicking on the link.
The text between the tags will be visible to the users.

Example :

<html> <body> <h4>Knowledge2life Links</h4> <p><a href="https://knowledge2life.com/">Knowledge2life</a></p> </body> </html>

OUTPUT:

Knowledge2life

Knowledge2life