CSS এর সাথে একটি নির্দিষ্ট শব্দ সম্বলিত বৈশিষ্ট্য মান সহ উপাদান নির্বাচন করতে [attribute ~="value"] নির্বাচক ব্যবহার করুন৷
আপনি [অ্যাট্রিবিউট ~="মান"] নির্বাচক প্রয়োগ করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন। এখানে, আমরা যে শব্দটি অনুসন্ধান করছি তা হল “টিউটোরিয়াল”,
উদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
[alt ~= Tutorials] {
border: 5px solid orange;
border-radius: 5px;
}
</style>
</head>
<body>
<img src = "https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg" height = "200" width = "200" alt = "Tutor Connect">
<img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg" height = "200" width="200" alt = "Tutorials Library">
</body>
</html>