The next tag that we are going to talk about is called the link tag.
And we are going to use this one a lot.
So let's see what it means.
A link tag or the ankle tag.
It is used to create a hyperlinks that allows users to navigate to other web pages or to different parts
of the same page or to other resources on the Internet.
Let's say that we have our website, which is this, and when a user click on a button, for example,
visit our YouTube channel.
As soon as the user click on that link, we want to take that user to that particular link or we can
navigate the user inside our application.
So let's see other use cases for the link tag.
We can use the ENCODE tag to download files.
Or we can use the same tag to open an application to send email, or we can use the same tag to point
to different telephone numbers.
So let's start with the simple use cases, and that is create a link to a different web page.
So let me add a comment here mixed with that.
We are outside this one.
So down here or even I can collapse this one and I'm going to add a comment as link tag or same as the
anchor tag.
And this how you're going to use it.
We bring in the A tag.
And as you can see, visualizing the code is smart because it knows that I'll provide the path.
So this is what you call the attribute, as we have spoken about.
And inside here we can enter anything I will say go to or visit my YouTube channel as that or let's
say go to Google.
So let me copy this same thing here and I will say go to Google.
As that.
So for the meantime, let me comment this one or let me remove this one and let me add a heading tag
as link tag inside the rift attribute.
We are going to provide the link where we want to take the user to.
We will say go to google.com and it follows this one as https column for slide 4/www. google.com.
With this one.
Save it and let's have a look.
You can see we have the link down here.
When I click on that, you can see that it is taking me to Google.
So any link that you want to take the user to.
You can provide it as that.
And we can navigate the user within our application.
Let's say that we have many pages, let's say, about apps or services page or services page.
As it stands right now, we don't have any other file apart from this.
We have a section called navigation.
If you get there, you'll be able to see how we are going to navigate within our application.
And for the SIM and Kotak, we can provide additional attribute.
When you provide target for the values list, select blank meaning that we don't want to open the same
link inside our application.
When I do this and when I refresh the page and I click on this, you can see that it has opened a different
window.
But if I don't provide the target.
And let's save it and let's have a look.
Let me close this one.
You can see that it has replaced our application or site unless I go back.
And this is one of the use cases for the link tag.
And we have one use case for downloading files.
Let's continue in the next video.