0:00:00.240,0:00:03.053 Everything that we've put [br]in our webpages so far 0:00:03.053,0:00:05.809 has been either [br]content displayed by the browser, 0:00:05.809,0:00:08.310 or tags to tell the browser [br]how to display it. 0:00:08.501,0:00:11.643 Sometimes though, we just want to put [br]information in our webpages 0:00:11.643,0:00:15.289 for other humans to read, [br]and for the browser to ignore. 0:00:15.774,0:00:18.917 To do that, we write [br]an opening angle-bracket, 0:00:18.917,0:00:22.346 an exclamation mark, [br]two dashes, 0:00:22.346,0:00:25.428 and some text inside here, 0:00:25.428,0:00:28.966 and then two dashes [br]and a closing angle-bracket. 0:00:29.099,0:00:30.578 We call this a comment. 0:00:30.578,0:00:33.891 And it's something that we do [br]in all sorts of programming languages, 0:00:33.891,0:00:37.027 because we often want to do things [br]that are just for humans. 0:00:37.148,0:00:38.958 That's the thing about programs: [br] 0:00:38.958,0:00:41.001 they're not just [br]for computers to look at, 0:00:41.001,0:00:43.011 they're also for [br]other humans to look at. 0:00:43.162,0:00:47.103 Because we often work together [br]on things and learn from each other. 0:00:47.339,0:00:49.211 Okay, what do we use comments for, 0:00:49.211,0:00:52.122 besides just saying "hello" [br]to our fellow humans? 0:00:52.260,0:00:54.916 Well, we might use them for [br]letting people know 0:00:54.916,0:00:58.179 where content came from, [br]in case they want to update it. 0:00:58.318,0:01:05.034 I'll say, "This paragraph is based on [br]the Wikipedia article," 0:01:05.284,0:01:08.425 and I should probably [br]give a link to that, too, but... 0:01:08.425,0:01:16.383 And, "This paragraph is based on [br]Pamela's personal opinion," 0:01:16.383,0:01:18.715 a very well trusted source. 0:01:19.142,0:01:23.937 Then maybe we'd even, say, [br]give a link inside the comments, 0:01:23.937,0:01:29.738 and say, "These lyrics were from here." 0:01:30.235,0:01:34.084 And that helps people know [br]how I got the content of this page. 0:01:34.194,0:01:36.501 Do you notice something [br]about these comments? 0:01:36.601,0:01:38.430 They are all green. 0:01:38.539,0:01:41.828 That's because we're using a code editor [br]with syntax highlighting, 0:01:41.828,0:01:44.348 and it uses colors to help us [br]see what's what, 0:01:44.348,0:01:48.046 and comments are pretty much [br]always colored green, by convention. 0:01:48.227,0:01:52.270 We could also use comments to [br]"comment out" parts of our HTML. 0:01:52.497,0:01:56.808 Like if we want to experiment with[br]taking something away from our webpage. 0:01:56.938,0:01:59.509 We just surround it with a comment. 0:02:00.219,0:02:01.791 ♪ (humming) ♪ 0:02:02.416,0:02:05.312 Now, the browser [br]no longer sees that HTML, 0:02:05.312,0:02:08.244 because browsers ignore [br]everything in comments, 0:02:08.244,0:02:10.528 and that part is gone from the page. 0:02:10.737,0:02:14.666 If I decide that I actually liked it, [br]I can comment it back in 0:02:14.666,0:02:17.655 by removing those comments [br]on both sides... 0:02:17.779,0:02:19.085 and now it's back! 0:02:19.403,0:02:22.053 Remember, comments are for humans. 0:02:22.243,0:02:25.641 At least, the kind of humans that [br]like to look at webpage code. 0:02:25.795,0:02:28.773 Which is pretty much [br]all of us now, right?