প্যারেন্টের শেষ চাইল্ড হয়ে থাকা <p> এলিমেন্টগুলো স্টাইল করতে CSS :last-child সিলেক্টর ব্যবহার করুন। নিচের কোড রান করে :last-child সিলেক্টর ইমপ্লিমেন্ট করুন।
<!DOCTYPE html> <html> <head> <style> p:last-child { background: orange; } </style> </head> <body> <p>This is demo text1.</p> <p>This is demo text2.</p> <p>This is demo text3.</p> </body> </html>