HTML-Links
- HTML links are used to navigate from one page to another. It is also known as a hyperlink.
- They allow users to click on a text or an image and be redirected to another page or location on the web.
- HTML links are created using <a> tag
- Links can open in the same tab or a new tab using the target attribute.
Let’s take an example –

π Try it yourself! Click the button below to run the code and see the output in action.
HTML Code
Output
In above example, if you click on Join Now then you will navigate to the “designwithrehana.com” page.
href attribute, which indicates the link’s destination
Real Life Example
- HTML links work like road signs, guiding users from one webpage to another using clickable text or images.
- Just like street directions,
<a>
tags help users navigate seamlessly across websites. - Clicking a “Buy Now” button on an e-commerce site is an example of an HTML link taking you to a checkout page.
Important Note: Want to download the full HTML course as a PDF? Click here to save it locally!