1 00:00:00,490 --> 00:00:02,410 Hello, everyone, and welcome back. 2 00:00:03,130 --> 00:00:07,240 In today's video, we will learn more about serial clusters insists. 3 00:00:08,360 --> 00:00:12,080 These other two classes which move on all the extremist elements. 4 00:00:12,650 --> 00:00:15,020 Let's try some of these to understand them better. 5 00:00:15,560 --> 00:00:21,320 See if you have these paragraphs and you want to add some states to the first and last paragraph of 6 00:00:21,500 --> 00:00:22,010 article. 7 00:00:22,880 --> 00:00:27,070 For this purpose, we can use the first update and dustoff day to look less. 8 00:00:27,980 --> 00:00:28,730 So let's try it. 9 00:00:30,020 --> 00:00:35,840 So first, let's try selecting the first paragraph of. 10 00:00:36,970 --> 00:00:37,810 Each article. 11 00:00:39,340 --> 00:00:43,510 So for that, let's first bring about what is the here? 12 00:00:45,550 --> 00:00:49,930 So what do you want to do is you want to select the first paragraph inside the article. 13 00:00:50,290 --> 00:00:51,830 So first we need to select article. 14 00:00:53,170 --> 00:00:55,990 Then we can use the child selector. 15 00:00:56,140 --> 00:00:58,680 So really don't sign on. 16 00:00:58,750 --> 00:00:59,940 Let's make the paragraph. 17 00:01:02,380 --> 00:01:07,120 Let's give this about Goncalo, say, a light Google, let's say it. 18 00:01:07,990 --> 00:01:13,300 And as you can see, all these paragraphs, which are the giant of articles, are highlighted. 19 00:01:14,480 --> 00:01:16,200 So all of these by the left are Ditech, Jay. 20 00:01:16,310 --> 00:01:19,460 Other than the second one for the second article. 21 00:01:20,360 --> 00:01:20,660 All right. 22 00:01:21,320 --> 00:01:27,410 So coming back here now, what we want is you want to select only the first one. 23 00:01:27,980 --> 00:01:30,030 So let's use this pseudo gloss. 24 00:01:32,170 --> 00:01:40,250 So first off, let's say that, as you can see, the first paragraph for the first article is highlighted. 25 00:01:40,810 --> 00:01:44,720 Similarly, in the first paragraph of second article is highlighted. 26 00:01:45,660 --> 00:01:51,880 So this first off, type two look, plus it selects the first occurrence of an element inside its radiant 27 00:01:51,940 --> 00:01:52,360 element. 28 00:01:52,990 --> 00:01:53,440 All right. 29 00:01:54,220 --> 00:01:56,240 Similarly, let's try selecting the last one. 30 00:01:58,200 --> 00:01:58,980 So. 31 00:02:01,240 --> 00:02:06,270 Selecting the last paragraph. 32 00:02:08,320 --> 00:02:09,600 Of each article. 33 00:02:11,260 --> 00:02:12,490 Let's go in this. 34 00:02:12,940 --> 00:02:14,300 Let's go with this and comment. 35 00:02:15,400 --> 00:02:16,380 Let's face it here. 36 00:02:16,640 --> 00:02:19,750 Sort of first off, I know we can use less of date. 37 00:02:20,500 --> 00:02:21,100 Let's save it. 38 00:02:22,020 --> 00:02:27,670 And as you can see, the last paragraph is highlighted for the first article on the last paragraph is 39 00:02:27,670 --> 00:02:29,530 highlighted for the second article. 40 00:02:30,400 --> 00:02:36,310 Now, let's say we want to add some states to the second and second last paragraph so we can do that 41 00:02:36,310 --> 00:02:40,930 using the amount of paper and then last off type Sieger plus. 42 00:02:41,320 --> 00:02:42,220 So let's try that. 43 00:02:43,950 --> 00:02:44,840 Let's commentors. 44 00:02:47,120 --> 00:02:48,110 Coming back here. 45 00:02:48,980 --> 00:02:50,050 So selected. 46 00:02:52,120 --> 00:02:56,740 The second paragraph of article of each article. 47 00:03:02,660 --> 00:03:05,840 Now, one disclosable like we could use in it. 48 00:03:07,100 --> 00:03:07,240 Of. 49 00:03:08,670 --> 00:03:12,060 So we wanted to select the second element so we can simply like, do here. 50 00:03:12,180 --> 00:03:12,770 Let's save it. 51 00:03:14,470 --> 00:03:21,280 As you can see, the second paragraph is highlighted for the first article on the second direct paragraph 52 00:03:21,910 --> 00:03:26,040 or the second direct change paragraph was highlighted for the second article. 53 00:03:27,900 --> 00:03:31,270 Similarly, if you wanted to select the third one, we could simply do like this. 54 00:03:32,260 --> 00:03:38,260 And as you can see, the total unselected and we're here also the third, Dick Cheney's highlighted. 55 00:03:39,060 --> 00:03:41,640 Now, see, we want you to select the last one. 56 00:03:42,000 --> 00:03:44,910 So and sort of ahead of time, we would do. 57 00:03:44,940 --> 00:03:46,040 And the last of time. 58 00:03:47,210 --> 00:03:50,660 So say you wanted to select the second lost, let's save it. 59 00:03:51,990 --> 00:03:58,140 And as you can see, the second last paragraph is highlighted similarly for the second article, the 60 00:03:58,140 --> 00:04:00,420 second last paragraph is highlighted. 61 00:04:01,140 --> 00:04:04,510 And that's how you select the items which unfroze joined us. 62 00:04:04,830 --> 00:04:09,120 So you could simply use this and that of date and and the last of you. 63 00:04:10,290 --> 00:04:10,980 Now, let's see. 64 00:04:12,090 --> 00:04:16,820 We want to sediq all the paragraphs, which are the first change inside the article. 65 00:04:18,680 --> 00:04:23,150 So let's copy this comment and now what we're trying to do here is. 66 00:04:24,980 --> 00:04:27,790 So like all the paragraphs. 67 00:04:30,130 --> 00:04:32,140 Which are the first? 68 00:04:34,000 --> 00:04:35,560 Child inside. 69 00:04:38,310 --> 00:04:39,060 The article. 70 00:04:41,010 --> 00:04:41,940 Let's face it, you. 71 00:04:44,840 --> 00:04:46,840 So let's remove this. 72 00:04:47,030 --> 00:04:47,340 Also. 73 00:04:49,470 --> 00:04:54,740 So for this, we can use an address here to a class called Posterchild. 74 00:04:55,590 --> 00:04:56,760 So let's use it here. 75 00:04:57,060 --> 00:05:00,120 So first child at seven. 76 00:05:02,870 --> 00:05:06,890 And as you can see, nothing is highlighted in the first article. 77 00:05:08,360 --> 00:05:12,170 But in the second article, this first paragraph is highlighted. 78 00:05:13,310 --> 00:05:14,040 And why is that? 79 00:05:14,610 --> 00:05:20,240 Because what we're doing is we are highlighting only those photographs, which are the first time. 80 00:05:20,910 --> 00:05:23,940 So in the case of Article one, the first sign is this. 81 00:05:25,290 --> 00:05:27,430 Similarly, let's try selecting the last J. 82 00:05:27,900 --> 00:05:28,920 Which is a paragraph. 83 00:05:29,250 --> 00:05:30,780 So let's just. 84 00:05:31,870 --> 00:05:32,530 Campiness. 85 00:05:35,010 --> 00:05:35,800 That's commonness. 86 00:05:37,190 --> 00:05:41,160 So what you're doing is direct all the paragraphs which are the last change. 87 00:05:41,720 --> 00:05:45,980 So actually it would be one sensor on Xerces to like the. 88 00:05:48,880 --> 00:05:53,830 So select a paragraph, which is the last shape inside the article. 89 00:05:54,160 --> 00:05:54,960 Sensitive first. 90 00:05:55,180 --> 00:05:56,720 We could simply do last. 91 00:05:58,000 --> 00:05:58,820 As you can see here. 92 00:05:59,560 --> 00:06:01,180 The last child is about enough. 93 00:06:01,210 --> 00:06:02,490 And that's why it's selected. 94 00:06:03,040 --> 00:06:05,580 Similarly, who were here the last Jane is a paragraph. 95 00:06:05,770 --> 00:06:07,240 And that's why it is selected. 96 00:06:08,440 --> 00:06:13,750 Similarly, let's say we wanted to select all the paragraphs which on the second child. 97 00:06:14,410 --> 00:06:15,580 So for that. 98 00:06:16,760 --> 00:06:18,230 We can use another property. 99 00:06:19,640 --> 00:06:20,750 Let's just come in this. 100 00:06:26,020 --> 00:06:30,470 So setting the paragraph, which is the second date and type article. 101 00:06:31,090 --> 00:06:34,930 So instead of last Friday, we could simply do that child on. 102 00:06:35,200 --> 00:06:37,180 We can give the value to the table. 103 00:06:38,840 --> 00:06:45,240 And as you can see, this paragraph is the second giant inside Article 12 here and there is no second 104 00:06:45,270 --> 00:06:49,450 chamber, which is a paragraph, because this paragraph, it is wrapped inside a bill. 105 00:06:50,460 --> 00:06:52,410 So as you can see, Hugh. 106 00:06:54,510 --> 00:06:58,920 So for the second article, the second paragraph was wrapped inside a live. 107 00:07:00,800 --> 00:07:01,270 All right. 108 00:07:04,140 --> 00:07:10,820 So similarly, if we wanted to select second last child, we could simply do something like this. 109 00:07:12,740 --> 00:07:18,950 So selling the paragraphs, which is the let's say second, last, second, let's start inside the article 110 00:07:19,280 --> 00:07:20,530 sensor off in that chain. 111 00:07:20,650 --> 00:07:22,490 We could do that last chain. 112 00:07:23,240 --> 00:07:23,870 Let's save it. 113 00:07:24,840 --> 00:07:28,640 And as you can see, the second last charge for the first article is a paragraph. 114 00:07:28,670 --> 00:07:29,890 So it's highlighted. 115 00:07:31,190 --> 00:07:34,460 Similarly, over here, the second US giant is a paragraph. 116 00:07:34,730 --> 00:07:36,530 And that's why it is highlighted. 117 00:07:38,510 --> 00:07:39,530 That's all for today, guys. 118 00:07:39,700 --> 00:07:41,660 If there's something that you did not understand. 119 00:07:41,750 --> 00:07:44,210 Feel free to drop a comment and we will discuss it. 120 00:07:45,080 --> 00:07:46,070 See you in the next video. 121 00:07:46,340 --> 00:07:46,670 Bye. 122 00:07:46,800 --> 00:07:47,540 And take care.