Links

Link allow us to navigate from one page to another. It makes the navigation possible.

Published on

Monday, Apr 13, 2020

In this lecture, We will learn how to make a text or content clickable so that when user clicks on it. it redirect them to a destination. It makes the navigation possible. To insert a link in HTML we have a dedicated tag called “< a>” tag.

In the “< a>” tag we need to put the url of the page(link) which we want to open on the click action. It can be an another page or a download request.

To specific the url we use tag attribute called “href”. We insert the link on the attribute.

< a> is an inline element

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML COURSE</title>
  </head>
  <body>
    <a href="https://instagram.com/orangepreneur">Follow me on Instagram</a>
  </body>
</html>

I hope you will like it. If you face any issue or have any doubt please connect with me via facebook messenger chat floating on the right side of the screen :)

happy learning :)

Follow me on Instagram