简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <style> a[target] { background-color:yellow; } </style> <p>The links with a target attribute gets a yellow background:</p> <a href="http://www.twle.cn">www.twle.cn</a> <a href="http://www.disney.com" target="_blank">disney.com</a> <a href="http://www.wikipedia.org" target="_top">wikipedia.org</a> <p><b>Note:</b> For [<i>attribute</i>] to work in IE8 and earlier, a DOCTYPE must be declared.</p> <footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
运行结果: