Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> p:nth-last-of-type(3) { background: #8ebf42; } </style> </head> <body> <h2>Exemple du sélecteur :nth-last-of-type() </h2> <p>Paragraphe 1</p> <p>Paragraphe 2</p> <p>Paragraphe 3</p> <p>Paragraphe 4</p> <p>Paragraphe 5</p> <p>Paragraphe 6</p> </body> </html>