源代码 :
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>开源教程(ossoft.cn)</title> <style> [title=ossoft] { border:5px solid green; } </style> </head> <body> <h2>将适用:</h2> <img title="ossoft" src="logo.png" width="270" height="50" /> <br> <a title="ossoft" href="/">ossoft</a> <hr> <h2>将不适用:</h2> <p title="greeting">Hi!</p> <a class="ossoft" href="/">ossoft</a> </body> </html>
运行结果