Set a border with the color "red", around elements with a "title" attribute containing the value "flow". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set a border with the color "red", around elements with a "title" attribute containing the value "flow".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
[title*="flow"] {
    border: 5px solid red;
}
</style><!--  ww  w  . j av a  2 s. com-->
</head>
<body>

<img src="https://www.java2s.com/style/demo/Opera.png" title="two red flowers" width="107" height="90">
<img src="https://www.java2s.com/style/demo/Opera.png" title="purple flower" width="107" height="80">
<img src="https://www.java2s.com/style/demo/Opera.png" title="red flower" width="116" height="90">
<img src="https://www.java2s.com/style/demo/Opera.png" title="two white flowers" width="120" height="90">

</body>
</html>

Related Tutorials