1 00:00:00,000 --> 00:00:03,150 >> SPEAKER: The worldwide web is all about hyperlinks, or links. 2 00:00:03,150 --> 00:00:05,800 So let's write a web page that has a link. 3 00:00:05,800 --> 00:00:09,830 Here, in link.html, I've already written some HTML for the head, for 4 00:00:09,830 --> 00:00:11,940 the title, and for the beginning of the body. 5 00:00:11,940 --> 00:00:15,570 And I've also preemptively closed all those tags because, inside of the body 6 00:00:15,570 --> 00:00:20,060 here, I'm going to type something like, this is. 7 00:00:20,060 --> 00:00:23,040 And now I want to provide a link to CS50's website. 8 00:00:23,040 --> 00:00:25,660 But I want the word still to be CS50. 9 00:00:25,660 --> 00:00:29,090 I don't want to visually see www.cs50.net, or 10 00:00:29,090 --> 00:00:30,620 something along those lines. 11 00:00:30,620 --> 00:00:34,090 >> So let's do open bracket a, for anchor. 12 00:00:34,090 --> 00:00:38,510 Let's specify an attribute, so to speak, a piece of text that modifies 13 00:00:38,510 --> 00:00:49,010 the behavior of this tag, as href equals, quote, https://www.cs50.net/. 14 00:00:49,010 --> 00:00:50,360 >> Let's now close the quote. 15 00:00:50,360 --> 00:00:53,530 Let's now close the tag, and specify that the word I want the 16 00:00:53,530 --> 00:00:56,400 user to see is CS50. 17 00:00:56,400 --> 00:01:00,430 Let's now close the tag with open bracket, slash a, closed bracket. 18 00:01:00,430 --> 00:01:01,810 Complete my sentence. 19 00:01:01,810 --> 00:01:02,950 Save the file. 20 00:01:02,950 --> 00:01:06,630 >> Let's now change the permissions on this file and view it in a browser, 21 00:01:06,630 --> 00:01:10,690 chmod a plus r link.html. 22 00:01:10,690 --> 00:01:19,380 Let's now open up Chrome, visit http://localhost/link.html. 23 00:01:19,380 --> 00:01:22,540 There we have a link highlighted in blue by the browser by default. 24 00:01:22,540 --> 00:01:26,030 And indeed, if we hover over it here, notice in the browser's bottom, 25 00:01:26,030 --> 00:01:29,910 left-hand corner, we see the link to which we'll be redirected. 26 00:01:29,910 --> 00:01:33,440 And if I click, we'll find ourselves on CS50's web page. 27 00:01:33,440 --> 00:01:35,766