ใช้ตัวเลือก [attribute*=”value”] เพื่อเลือกองค์ประกอบที่มีค่าแอตทริบิวต์มีค่าที่ระบุ
คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้ตัวเลือก CSS [attribute*="value"]
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
[href* = java] {
border: 5px solid orange;
border-radius: 5px;
}
</style>
</head>
<body>
<a href = "https://www.tutorialspoint.com/php/index.htm">PHP Tutorial</a>
<a href = "https://tutorialspoint.com/java/index.htm">Java Tutorial</a>
</body>
</html>