HTML onunload 事件属性HTML 事件属性实例当用户卸载文档时执行一段 JavaScript:<body onunload="goodbye()">浏览器支持 IE Firefox Chrome Safari Opera
HTML onresize 事件属性HTML 事件属性实例当浏览器窗口被调整大小时执行一段 JavaScript:<body onresize="showMsg()">浏览器支持 IE Firefox Chrome Safari Op
HTML onload 事件属性HTML 事件属性实例页面加载之后立即执行一段 JavaScript:<body onload="load()">浏览器支持 IE Firefox Chrome Safari Opera
HTML onbeforeprint 事件属性HTML 事件属性实例在设置页面打印之后但是在打印对话框出现之前执行 JavaScript:<body onbeforeprint="printmsg()">浏览器支持 IE Firef
HTML onafterprint 事件属性HTML 事件属性实例在设置页面打印且打印对话框已出现之后,执行一段 JavaScript:<body onafterprint="printmsg()">浏览器支持 IE Firefox
HTML translate 属性HTML 全局属性实例规定不应翻译某些元素:<p translate="no">请勿翻译本段。</p><p>本段可被译为任意语言。</p>浏览器支持 IE Firefox Chrome
HTML title 属性HTML 全局属性实例在 HTML 文档中使用 title 属性:<abbr title="People's Republic of China">PRC</abbr> was founded in 1949.<p title="Free Web tutorial
HTML tabindex 属性HTML 全局属性实例带有指定 tab 键顺序的链接:<a href="http://www.phpcodeweb.com/" tabindex="2">phpcodeweb</a><a href="http://www.google.com/" tab
HTML style 属性HTML 全局属性实例在 HTML 文档中使用 style 属性:<h1 style="color:blue; text-align:center">This is a header</h1><p style="color:red">This is a parag
HTML spellcheck 属性HTML 全局属性实例进行拼写检查的可编辑段落:<p contenteditable="true" spellcheck="true">这是一个段落。</p> 完整实例【亲自试一试】:<!DOCTYPE HTML
HTML lang 属性HTML 全局属性实例段落中的一些法文:<p lang="fr">Ceci est un paragraphe.</p> 完整实例【亲自试一试】:<!DOCTYPE html><html><body><p>This is a paragraph.
HTML id 属性HTML 全局属性实例通过 JavaScript 利用 id 属性来改变一段文本:<html><head><script type="text/javascript">function change_header(){document.getElementBy
HTML hidden 属性HTML 全局属性实例被隐藏的段落:<p hidden>这个段落应该被隐藏。</p> 完整实例【亲自试一试】:<!DOCTYPE html><html><body><p hidden="hidden">这是一段隐藏
HTML dropzone 属性HTML 全局属性实例拖动数据会产生被拖动数据的副本:<div dropzone="copy"></div>浏览器支持 IE Firefox Chrome Safari Opera
HTML draggable 属性HTML 全局属性实例一个可拖动的段落:<p draggable="true">这是一个可拖动的段落。</p> 完整实例【亲自试一试】:<!DOCTYPE HTML><html><head><style type=