1
00:00:07,590 --> 00:00:14,340
The next tag that we are going to talk about is called the link tag.

2
00:00:15,150 --> 00:00:19,060
And we are going to use this one a lot.

3
00:00:19,080 --> 00:00:21,780
So let's see what it means.

4
00:00:22,670 --> 00:00:26,210
A link tag or the ankle tag.

5
00:00:26,540 --> 00:00:35,060
It is used to create a hyperlinks that allows users to navigate to other web pages or to different parts

6
00:00:35,060 --> 00:00:40,400
of the same page or to other resources on the Internet.

7
00:00:40,880 --> 00:00:49,670
Let's say that we have our website, which is this, and when a user click on a button, for example,

8
00:00:49,670 --> 00:00:51,440
visit our YouTube channel.

9
00:00:52,180 --> 00:01:00,070
As soon as the user click on that link, we want to take that user to that particular link or we can

10
00:01:00,070 --> 00:01:03,190
navigate the user inside our application.

11
00:01:03,310 --> 00:01:07,300
So let's see other use cases for the link tag.

12
00:01:07,900 --> 00:01:12,190
We can use the ENCODE tag to download files.

13
00:01:13,000 --> 00:01:23,230
Or we can use the same tag to open an application to send email, or we can use the same tag to point

14
00:01:23,230 --> 00:01:25,960
to different telephone numbers.

15
00:01:25,990 --> 00:01:34,280
So let's start with the simple use cases, and that is create a link to a different web page.

16
00:01:34,300 --> 00:01:36,940
So let me add a comment here mixed with that.

17
00:01:36,940 --> 00:01:39,250
We are outside this one.

18
00:01:39,250 --> 00:01:52,150
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

19
00:01:52,160 --> 00:01:53,620
anchor tag.

20
00:01:53,800 --> 00:01:55,840
And this how you're going to use it.

21
00:01:55,840 --> 00:01:58,510
We bring in the A tag.

22
00:01:58,510 --> 00:02:05,650
And as you can see, visualizing the code is smart because it knows that I'll provide the path.

23
00:02:05,830 --> 00:02:10,810
So this is what you call the attribute, as we have spoken about.

24
00:02:11,020 --> 00:02:21,760
And inside here we can enter anything I will say go to or visit my YouTube channel as that or let's

25
00:02:21,760 --> 00:02:23,570
say go to Google.

26
00:02:23,590 --> 00:02:29,410
So let me copy this same thing here and I will say go to Google.

27
00:02:32,850 --> 00:02:33,690
As that.

28
00:02:33,900 --> 00:02:40,560
So for the meantime, let me comment this one or let me remove this one and let me add a heading tag

29
00:02:40,920 --> 00:02:46,740
as link tag inside the rift attribute.

30
00:02:46,770 --> 00:02:51,060
We are going to provide the link where we want to take the user to.

31
00:02:51,600 --> 00:03:04,140
We will say go to google.com and it follows this one as https column for slide 4/www. google.com.

32
00:03:05,940 --> 00:03:07,050
With this one.

33
00:03:07,050 --> 00:03:09,690
Save it and let's have a look.

34
00:03:10,200 --> 00:03:13,320
You can see we have the link down here.

35
00:03:13,530 --> 00:03:18,300
When I click on that, you can see that it is taking me to Google.

36
00:03:18,390 --> 00:03:21,660
So any link that you want to take the user to.

37
00:03:21,690 --> 00:03:24,510
You can provide it as that.

38
00:03:25,310 --> 00:03:30,200
And we can navigate the user within our application.

39
00:03:30,710 --> 00:03:38,740
Let's say that we have many pages, let's say, about apps or services page or services page.

40
00:03:38,750 --> 00:03:43,010
As it stands right now, we don't have any other file apart from this.

41
00:03:43,340 --> 00:03:45,950
We have a section called navigation.

42
00:03:46,490 --> 00:03:52,070
If you get there, you'll be able to see how we are going to navigate within our application.

43
00:03:52,800 --> 00:03:57,740
And for the SIM and Kotak, we can provide additional attribute.

44
00:03:57,750 --> 00:04:05,880
When you provide target for the values list, select blank meaning that we don't want to open the same

45
00:04:05,880 --> 00:04:08,280
link inside our application.

46
00:04:08,640 --> 00:04:15,960
When I do this and when I refresh the page and I click on this, you can see that it has opened a different

47
00:04:15,960 --> 00:04:16,589
window.

48
00:04:16,709 --> 00:04:19,470
But if I don't provide the target.

49
00:04:21,390 --> 00:04:24,700
And let's save it and let's have a look.

50
00:04:24,720 --> 00:04:26,070
Let me close this one.

51
00:04:27,060 --> 00:04:32,550
You can see that it has replaced our application or site unless I go back.

52
00:04:33,470 --> 00:04:37,760
And this is one of the use cases for the link tag.

53
00:04:38,300 --> 00:04:42,200
And we have one use case for downloading files.

54
00:04:42,380 --> 00:04:44,210
Let's continue in the next video.

