1 00:00:00,000 --> 00:00:03,960 Let's take a formal look at change text. 2 00:00:03,960 --> 00:00:08,220 And we've actually worked with this a lot so far, a lot, 3 00:00:08,220 --> 00:00:10,260 a lot in pretty much every lesson so far, 4 00:00:10,260 --> 00:00:12,540 maybe even every lesson so far. 5 00:00:12,540 --> 00:00:14,210 But let's take a formal look at it. 6 00:00:14,205 --> 00:00:16,425 And so in the last lesson, we looked at dot HTML. 7 00:00:16,425 --> 00:00:19,035 In this one we're going to be looking at dot text. 8 00:00:19,035 --> 00:00:23,965 And so what we can do here is Let's not do a div or an H1. 9 00:00:23,960 --> 00:00:27,560 Let's do a section element. 10 00:00:27,560 --> 00:00:33,370 And let's say put some HTML code in here. 11 00:00:33,365 --> 00:00:38,065 And so we can select this selection or section element 12 00:00:38,060 --> 00:00:42,860 with dollar sign, parenthesis, section dot. 13 00:00:42,860 --> 00:00:45,760 And then we can either change the HTML or the, 14 00:00:45,755 --> 00:00:47,425 or the the text. 15 00:00:47,420 --> 00:00:50,810 Now, if we wanted to actually put HTML code in here, 16 00:00:50,810 --> 00:00:53,000 we can't use HTML. 17 00:00:53,000 --> 00:00:59,050 So if I put a bold versus bold tag. 18 00:00:59,045 --> 00:01:01,585 So this is old way of doing bold. 19 00:01:01,580 --> 00:01:03,370 This is the new way of doing bold. 20 00:01:03,365 --> 00:01:06,485 Just save this and refresh my page. 21 00:01:07,300 --> 00:01:10,160 It actually, it tries to render itself. 22 00:01:10,160 --> 00:01:11,830 So if I go into the section here, 23 00:01:11,825 --> 00:01:14,935 it fixed up my B and strong elements. 24 00:01:14,930 --> 00:01:18,320 And that's because we're actually injecting HTML into the page. 25 00:01:18,320 --> 00:01:21,440 We don't need to do that though. If we actually wanted to see this code, 26 00:01:21,440 --> 00:01:22,970 we can just do dot text. 27 00:01:22,970 --> 00:01:28,520 And that's the difference between dot txt index.html is when I refresh the page, 28 00:01:28,520 --> 00:01:31,450 it actually shows up so I can write HTML in here now, 29 00:01:31,445 --> 00:01:34,015 which is really great for coding websites, coding blogs, 30 00:01:34,010 --> 00:01:37,870 things like that, whenever you need to actually display some sort of code. 31 00:01:37,865 --> 00:01:42,685 Now your task for this particular lesson is to select an element. 32 00:01:42,680 --> 00:01:45,290 It doesn't have to be a section, it can be any element. 33 00:01:45,290 --> 00:01:48,710 And then inside of that element with jQuery, 34 00:01:48,710 --> 00:01:51,440 I want you to use dot txt n dot HTML and write 35 00:01:51,440 --> 00:01:54,680 some HTML inside of it and see what the difference actually is. 36 00:01:54,680 --> 00:01:57,320 Now you've seen what the difference is on my screen, 37 00:01:57,320 --> 00:02:00,350 but it's not quite the same as actually getting some hands on experience. 38 00:02:00,350 --> 00:02:02,140 So go ahead and get some hands-on experience. 39 00:02:02,135 --> 00:02:04,915 And when you're done that in the next lesson, 40 00:02:04,910 --> 00:02:07,850 let's go ahead and talk about getting 41 00:02:07,850 --> 00:02:12,420 form values because form values aren't quite the same.