অ্যাট্রিবিউট সম্পন্ন এলিমেন্ট সিলেক্ট করতে CSS [attribute] সিলেক্টর ব্যবহার করুন।
উদাহরণস্বরূপ alt অ্যাট্রিবিউট বা target অ্যাট্রিবিউট ইত্যাদি।
CSS [attribute] সিলেক্টর বাস্তবায়ন করতে নিচের কোডটি রান করুন:
উদাহরণ
<!DOCTYPE html> <html> <head> <style> img[alt] { border: 3px solid orange; } </style> </head> <body> <img src = "https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg" height="200" width="200"> <img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg" height="200" width="200" alt="Tutorials Library"> </body> </html>