Source Code:
(back to article)
Submit
Result:
Report an issue
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
⌄
⌄
⌄
⌄
⌄
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>Title of the document</
title
>
<
style
>
li
:
first-of-type
+
li
{
color:
#00d42a
;
}
</
style
>
</
head
>
<
body
>
<
ul
>
<
li
>First line</
li
>
<
li
>Second line</
li
>
<
li
>Third line</
li
>
</
ul
>
</
body
>
</
html
>
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> li:first-of-type + li { color: #00d42a; } </style> </head> <body> <ul> <li>First line</li> <li>Second line</li> <li>Third line</li> </ul> </body> </html>