[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.24,0:00:03.05,Default,,0000,0000,0000,,Everything that we've put \Nin our webpages so far Dialogue: 0,0:00:03.05,0:00:05.81,Default,,0000,0000,0000,,has been either \Ncontent displayed by the browser, Dialogue: 0,0:00:05.81,0:00:08.31,Default,,0000,0000,0000,,or tags to tell the browser \Nhow to display it. Dialogue: 0,0:00:08.50,0:00:11.64,Default,,0000,0000,0000,,Sometimes though, we just want to put \Ninformation in our webpages Dialogue: 0,0:00:11.64,0:00:15.29,Default,,0000,0000,0000,,for other humans to read, \Nand for the browser to ignore. Dialogue: 0,0:00:15.77,0:00:18.92,Default,,0000,0000,0000,,To do that, we write \Nan opening angle-bracket, Dialogue: 0,0:00:18.92,0:00:22.35,Default,,0000,0000,0000,,an exclamation mark, \Ntwo dashes, Dialogue: 0,0:00:22.35,0:00:25.43,Default,,0000,0000,0000,,and some text inside here, Dialogue: 0,0:00:25.43,0:00:28.97,Default,,0000,0000,0000,,and then two dashes \Nand a closing angle-bracket. Dialogue: 0,0:00:29.10,0:00:30.58,Default,,0000,0000,0000,,We call this a comment. Dialogue: 0,0:00:30.58,0:00:33.89,Default,,0000,0000,0000,,And it's something that we do \Nin all sorts of programming languages, Dialogue: 0,0:00:33.89,0:00:37.03,Default,,0000,0000,0000,,because we often want to do things \Nthat are just for humans. Dialogue: 0,0:00:37.15,0:00:38.96,Default,,0000,0000,0000,,That's the thing about programs: \N Dialogue: 0,0:00:38.96,0:00:41.00,Default,,0000,0000,0000,,they're not just \Nfor computers to look at, Dialogue: 0,0:00:41.00,0:00:43.01,Default,,0000,0000,0000,,they're also for \Nother humans to look at. Dialogue: 0,0:00:43.16,0:00:47.10,Default,,0000,0000,0000,,Because we often work together \Non things and learn from each other. Dialogue: 0,0:00:47.34,0:00:49.21,Default,,0000,0000,0000,,Okay, what do we use comments for, Dialogue: 0,0:00:49.21,0:00:52.12,Default,,0000,0000,0000,,besides just saying "hello" \Nto our fellow humans? Dialogue: 0,0:00:52.26,0:00:54.92,Default,,0000,0000,0000,,Well, we might use them for \Nletting people know Dialogue: 0,0:00:54.92,0:00:58.18,Default,,0000,0000,0000,,where content came from, \Nin case they want to update it. Dialogue: 0,0:00:58.32,0:01:05.03,Default,,0000,0000,0000,,I'll say, "This paragraph is based on \Nthe Wikipedia article," Dialogue: 0,0:01:05.28,0:01:08.42,Default,,0000,0000,0000,,and I should probably \Ngive a link to that, too, but... Dialogue: 0,0:01:08.42,0:01:16.38,Default,,0000,0000,0000,,And, "This paragraph is based on \NPamela's personal opinion," Dialogue: 0,0:01:16.38,0:01:18.72,Default,,0000,0000,0000,,a very well trusted source. Dialogue: 0,0:01:19.14,0:01:23.94,Default,,0000,0000,0000,,Then maybe we'd even, say, \Ngive a link inside the comments, Dialogue: 0,0:01:23.94,0:01:29.74,Default,,0000,0000,0000,,and say, "These lyrics were from here." Dialogue: 0,0:01:30.24,0:01:34.08,Default,,0000,0000,0000,,And that helps people know \Nhow I got the content of this page. Dialogue: 0,0:01:34.19,0:01:36.50,Default,,0000,0000,0000,,Do you notice something \Nabout these comments? Dialogue: 0,0:01:36.60,0:01:38.43,Default,,0000,0000,0000,,They are all green. Dialogue: 0,0:01:38.54,0:01:41.83,Default,,0000,0000,0000,,That's because we're using a code editor \Nwith syntax highlighting, Dialogue: 0,0:01:41.83,0:01:44.35,Default,,0000,0000,0000,,and it uses colors to help us \Nsee what's what, Dialogue: 0,0:01:44.35,0:01:48.05,Default,,0000,0000,0000,,and comments are pretty much \Nalways colored green, by convention. Dialogue: 0,0:01:48.23,0:01:52.27,Default,,0000,0000,0000,,We could also use comments to \N"comment out" parts of our HTML. Dialogue: 0,0:01:52.50,0:01:56.81,Default,,0000,0000,0000,,Like if we want to experiment with\Ntaking something away from our webpage. Dialogue: 0,0:01:56.94,0:01:59.51,Default,,0000,0000,0000,,We just surround it with a comment. Dialogue: 0,0:02:00.22,0:02:01.79,Default,,0000,0000,0000,,♪ (humming) ♪ Dialogue: 0,0:02:02.42,0:02:05.31,Default,,0000,0000,0000,,Now, the browser \Nno longer sees that HTML, Dialogue: 0,0:02:05.31,0:02:08.24,Default,,0000,0000,0000,,because browsers ignore \Neverything in comments, Dialogue: 0,0:02:08.24,0:02:10.53,Default,,0000,0000,0000,,and that part is gone from the page. Dialogue: 0,0:02:10.74,0:02:14.67,Default,,0000,0000,0000,,If I decide that I actually liked it, \NI can comment it back in Dialogue: 0,0:02:14.67,0:02:17.66,Default,,0000,0000,0000,,by removing those comments \Non both sides... Dialogue: 0,0:02:17.78,0:02:19.08,Default,,0000,0000,0000,,and now it's back! Dialogue: 0,0:02:19.40,0:02:22.05,Default,,0000,0000,0000,,Remember, comments are for humans. Dialogue: 0,0:02:22.24,0:02:25.64,Default,,0000,0000,0000,,At least, the kind of humans that \Nlike to look at webpage code. Dialogue: 0,0:02:25.80,0:02:28.77,Default,,0000,0000,0000,,Which is pretty much \Nall of us now, right?