একটি অ্যাট্রিবিউট সহ উপাদান নির্বাচন করতে [অ্যাট্রিবিউট] নির্বাচক ব্যবহার করুন, উদাহরণস্বরূপ, একটি Alt অ্যাট্রিবিউট বা লক্ষ্য বৈশিষ্ট্য ইত্যাদি।
আপনি CSS[অ্যাট্রিবিউট] নির্বাচক,
প্রয়োগ করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেনউদাহরণ
<!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>