源代码
<!DOCTYPE html> <html> <head> <style> [title] { color:blue; } </style> </head> <body> <h2>Will apply to:</h2> <h1 title="Hello world">Hello world</h1> <a title="CodingDict.com" href="//www.CodingDict.com/">CodingDict.com</a> <hr> <h2>Will not apply to:</h2> <p>Hello!</p> </body> </html>
运行结果