Hello, everyone, and welcome back.
In today's video, we will learn more about serial clusters insists.
These other two classes which move on all the extremist elements.
Let's try some of these to understand them better.
See if you have these paragraphs and you want to add some states to the first and last paragraph of
article.
For this purpose, we can use the first update and dustoff day to look less.
So let's try it.
So first, let's try selecting the first paragraph of.
Each article.
So for that, let's first bring about what is the here?
So what do you want to do is you want to select the first paragraph inside the article.
So first we need to select article.
Then we can use the child selector.
So really don't sign on.
Let's make the paragraph.
Let's give this about Goncalo, say, a light Google, let's say it.
And as you can see, all these paragraphs, which are the giant of articles, are highlighted.
So all of these by the left are Ditech, Jay.
Other than the second one for the second article.
All right.
So coming back here now, what we want is you want to select only the first one.
So let's use this pseudo gloss.
So first off, let's say that, as you can see, the first paragraph for the first article is highlighted.
Similarly, in the first paragraph of second article is highlighted.
So this first off, type two look, plus it selects the first occurrence of an element inside its radiant
element.
All right.
Similarly, let's try selecting the last one.
So.
Selecting the last paragraph.
Of each article.
Let's go in this.
Let's go with this and comment.
Let's face it here.
Sort of first off, I know we can use less of date.
Let's save it.
And as you can see, the last paragraph is highlighted for the first article on the last paragraph is
highlighted for the second article.
Now, let's say we want to add some states to the second and second last paragraph so we can do that
using the amount of paper and then last off type Sieger plus.
So let's try that.
Let's commentors.
Coming back here.
So selected.
The second paragraph of article of each article.
Now, one disclosable like we could use in it.
Of.
So we wanted to select the second element so we can simply like, do here.
Let's save it.
As you can see, the second paragraph is highlighted for the first article on the second direct paragraph
or the second direct change paragraph was highlighted for the second article.
Similarly, if you wanted to select the third one, we could simply do like this.
And as you can see, the total unselected and we're here also the third, Dick Cheney's highlighted.
Now, see, we want you to select the last one.
So and sort of ahead of time, we would do.
And the last of time.
So say you wanted to select the second lost, let's save it.
And as you can see, the second last paragraph is highlighted similarly for the second article, the
second last paragraph is highlighted.
And that's how you select the items which unfroze joined us.
So you could simply use this and that of date and and the last of you.
Now, let's see.
We want to sediq all the paragraphs, which are the first change inside the article.
So let's copy this comment and now what we're trying to do here is.
So like all the paragraphs.
Which are the first?
Child inside.
The article.
Let's face it, you.
So let's remove this.
Also.
So for this, we can use an address here to a class called Posterchild.
So let's use it here.
So first child at seven.
And as you can see, nothing is highlighted in the first article.
But in the second article, this first paragraph is highlighted.
And why is that?
Because what we're doing is we are highlighting only those photographs, which are the first time.
So in the case of Article one, the first sign is this.
Similarly, let's try selecting the last J.
Which is a paragraph.
So let's just.
Campiness.
That's commonness.
So what you're doing is direct all the paragraphs which are the last change.
So actually it would be one sensor on Xerces to like the.
So select a paragraph, which is the last shape inside the article.
Sensitive first.
We could simply do last.
As you can see here.
The last child is about enough.
And that's why it's selected.
Similarly, who were here the last Jane is a paragraph.
And that's why it is selected.
Similarly, let's say we wanted to select all the paragraphs which on the second child.
So for that.
We can use another property.
Let's just come in this.
So setting the paragraph, which is the second date and type article.
So instead of last Friday, we could simply do that child on.
We can give the value to the table.
And as you can see, this paragraph is the second giant inside Article 12 here and there is no second
chamber, which is a paragraph, because this paragraph, it is wrapped inside a bill.
So as you can see, Hugh.
So for the second article, the second paragraph was wrapped inside a live.
All right.
So similarly, if we wanted to select second last child, we could simply do something like this.
So selling the paragraphs, which is the let's say second, last, second, let's start inside the article
sensor off in that chain.
We could do that last chain.
Let's save it.
And as you can see, the second last charge for the first article is a paragraph.
So it's highlighted.
Similarly, over here, the second US giant is a paragraph.
And that's why it is highlighted.
That's all for today, guys.
If there's something that you did not understand.
Feel free to drop a comment and we will discuss it.
See you in the next video.
Bye.
And take care.