প্যারেন্টের প্রথম <p> এলিমেন্ট স্টাইল করতে CSS :first-of-type সিলেক্টর ব্যবহার করুন।
উদাহরণ
নিচের কোড রান করে :first-of-type সিলেক্টর ইমপ্লিমেন্ট করুন।
<!DOCTYPE html> <html> <head> <style> p:first-of-type { background: orange; } </style> </head> <body> <p>This is demo text1.</p> <p>This is demo text2.</p> </body> </html>