找回密码
 注册
搜索
热搜: 回贴

XHTML中推荐和不推荐的内容标签

2009-12-16 23:36| 发布者: admin| 查看: 64| 评论: 0|原作者: 冰淇淋

  catest收录的关于在XHTML中能使用的内容标签列表
  运行代码框





XHTML 1.0 中文参考




XHTML 1.0 参考


译自http://www.w3schools.com/xhtml/xhtml_ref_byfunc.asp


译者:拖鞋飞扬(catest)




按功能排列



  • NN: 表明哪个早期Netscape版本支持这个标签

  • IE: 表明哪个早期Internet Explorer版本支持这个标签

  • DTD: 表明符合XHTML 1.0 DTD 何级别的定义 . S=Strict(严格), T=Transitional(过渡), and F=Frameset(框架)

















































































































































































































































































































































































































































































































































































































































































































































































































































开始标签 用途(Purpose) NN IE DTD
         
基本标签        
<!DOCTYPE>? 文档类型(Defines the document type)     STF
<html> html文档(Defines a html document) 3.0 3.0 STF
<body> body元素(Defines the body element) 3.0 3.0 STF
<h1> to <h6> 标题1 -- 标题6(Defines header 1 to header 6) 3.0 3.0 STF
<p> 段落(Defines a paragraph) 3.0 3.0 STF
<br /> 换行(Inserts a single line break) 3.0 3.0 STF
<hr /> 水平线(Defines a horizontal rule) 3.0 3.0 STF
<!--...--> 注释(Defines a comment) 3.0 3.0 STF
         
Char Format        
<b> 粗体文本(Defines bold text) 3.0 3.0 STF
<font> 文字的外观,大小和颜色(Defines the font face, size, and color of text) 3.0 3.0 TF
<i> 文本为斜体(Defines italic text) 3.0 3.0 STF
<em> 文本为重要(Defines emphasized text)? 3.0 3.0 STF
<big> 文本增大(Defines big text) 3.0 3.0 STF
<strong> 文本为非常重要(Defines strong text) 3.0 3.0 STF
<small> 文本缩小(Defines small text) 3.0 3.0 STF
<sup> 文本上标(Defines superscripted text) 3.0 3.0 STF
<sub> 文本下标(Defines subscripted text) 3.0 3.0 STF
<bdo> ???(Defines the direction of text display) 6.2 5.0 STF
<u> 文本下划线(Defines underlined text) 3.0 3.0 TF
         
输出        
<pre> 预先格式(保留文件中空格的大小)(Defines preformatted text) 3.0 3.0 STF
<code> 码(显示源码用)(Defines computer code text) 3.0 3.0 STF
<tt> 打印机字体(Defines teletype text) 3.0 3.0 STF
<kbd> 键盘(Defines keyboard text) 3.0 3.0 STF
<dfn> 定义(Defines?a definition term) ? 3.0 STF
<var> 变数(Defines a variable) 3.0 3.0 STF
<samp> 样本(Defines sample computer code) 3.0 3.0 STF
<xmp> 不赞成使用,使用<pre>代替(Deprecated. Defines preformatted text. Use <pre> instead) 3.0 3.0  
         
结构性定义        
<acronym> 只取首字母的缩写词(Defines an acronym) 6.2 4.0 STF
<abbr> 缩写(Defines an abbreviation) 6.2 ? STF
<address> 地址(Defines an address element) 4.0 4.0 STF
<blockquote> 引文区块(Defines an long quotation) 3.0 3.0 STF
<center> 句中对齐(Defines centered text) 3.0 3.0 TF
<q> 引用短语(Defines a short quotation) 6.2 4.0 STF
<cite> 引文(Defines a citation) 3.0 3.0 STF
<ins> 插入(Defines inserted text) 6.2 4.0 STF
<del> 删除(Defines deleted text) 6.2 4.0 STF
<s> 删除线(Defines strikethrough text) 3.0 3.0 TF
<strike> 删除线(Defines strikethrough text) 3.0 3.0 TF
         
链接        
<a> 链接(Defines an anchor) 3.0 3.0 STF
<link> 资源参考??(Defines a resource reference) 4.0 3.0 STF
         
框架        
<frame> 定义个别视框(Defines a sub window (a frame)) 3.0 3.0 F
<frameset> 视框格式总定义(Defines a set of frames) 3.0 3.0 F
<noframes> 无视框时的内容(Defines a noframe section) 3.0 3.0 TF
<iframe> 定义嵌入视图(Defines an inline sub window (frame)) 6.0 4.0 TF
         
输入        
<form> 定义表单(Defines a form) 3.0 3.0 STF
<input /> 定义输入域(Defines an input field) 3.0 3.0 STF
<textarea> 输入区换行方式(Defines a text area) 3.0 3.0 STF
<button> 按钮(Defines a push button) 6.2 4.0 STF
<select> 下拉式选单(Defines a selectable list) 3.0 3.0 STF
<optgroup> 选项组(Defines an option group) 6.0 6.0 STF
<option> 列表选项(Defines an item in a list box) 3.0 3.0 STF
<label>

标签(用于表单控制?)(Defines a label?for a form control)


情缘.教程_网 [http://Www.XiuGoo.Com]
6.2 4.0 STF
<fieldset> 域(Defines a fieldset) 6.2 4.0 STF
<legend> 域标题(Defines a title in a fieldset) 6.2 4.0 STF
<isindex> 不建议使用(可搜寻,使用input代替)(Deprecated. Defines a single-line input field. Use <input> instead) 3.0 3.0 TF
         
列举        
<ul> 无次序式列举(Defines an unordered list) 3.0 3.0 STF
<ol> 有次序式列举(Defines an ordered list) 3.0 3.0 STF
<li> 每条项目列表(Defines a list item) 3.0 3.0 STF
<dir> 目录式列举(Defines a directory list) 3.0 3.0 TF
<dl> 定义式列举(Defines a definition list) 3.0 3.0 STF
<dt> 定义项目(Defines a definition term) 3.0 3.0 STF
<dd> 定义说明(Defines a definition description) 3.0 3.0 STF
<menu> 菜单列表(Defines a menu list) 3.0 3.0 TF
         
图片        
<img /> 图片(Defines an image) 3.0 3.0 STF
<map> 图片地图(Defines an image map)? 3.0 3.0 STF
<area /> 图片热点(Defines an area inside an image map) 3.0 3.0 STF
         
表格        
<table> 表格(Defines a table) 3.0 3.0 STF
<caption> 表格抬头(Defines a table caption) 3.0 3.0 STF
<th> 表格标题(Defines a table header) 3.0 3.0 STF
<tr> 行(Defines a table row) 3.0 3.0 STF
<td> 单元格(列)(Defines a table cell) 3.0 3.0 STF
<thead> 定义表格头(Defines a table header)   4.0 STF
<tbody> 定义表格主体(Defines a table body)   4.0 STF
<tfoot> 定义表格脚(Defines a table footer)   4.0 STF
<col> 定义特有特征(Defines attributes for table columns)?   3.0 STF
<colgroup> 定义特征集合(Defines groups of table columns)   3.0 STF
         
样式        
<style> 样式定义(Defines a style definition) 4.0 3.0 STF
<div> 在文档中定义一个区域(Defines a section in a document) 3.0 3.0 STF
<span> 在文档中定义一个区域(Defines a section in a document) 4.0 3.0 STF
         
头信息        
<head> 定语关于文档的信息(Defines information about the document) 3.0 3.0 STF
<title> 定义文档标题(Defines the document title) 3.0 3.0 STF
<meta> 定义背景资讯(Defines meta information) 3.0 3.0 STF
<base /> 基本文档中所有链接的基准(Defines a base URL for all the links in a page) 3.0 3.0 STF
<basefont /> 定义基本字体(Defines a base font) 3.0 3.0 TF
         
脚本、引用外部对象相关        
<script> 定义脚本(Defines a script) 3.0 3.0 STF
<noscript> 定义无脚本的显示区域(Defines a noscript section) 3.0 3.0 STF
<applet> 定义java程序(Defines an applet) 2.0 3.0 TF
<object> 定义内嵌对象(Defines an embedded object) ? 3.0 STF
<param> 定义对象的参数(Defines a parameter for an object) 3.0 3.0 STF




[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
  同样,xhtml不鼓励使用、排斥的标签:
  能通过过渡定义的标签,但通不过严格定义。
文字的外观,大小和颜色(Defines the font face, size, and color of text)
文本下划线(Defines underlined text)
句中对齐(Defines centered text)
删除线(Defines strikethrough text)
删除线(Defines strikethrough text)
无视框时的内容(Defines a noframe section)<br><iframe> 定义嵌入视图(Defines an inline sub window (frame))<br><isindex> 不建议使用(可搜寻,使用input代替)(Deprecated. Defines a single-line input field. Use <input> instead)<br><dir> 目录式列举(Defines a directory list)<br><menu> 菜单列表(Defines a menu list)<br><basefont /> 定义基本字体(Defines a base font)<br><applet> 定义java程序(Defines an applet)<br>  能通过框架定义验证,不鼓励使用<br><frame> 定义个别视框(Defines a sub window (a frame))<br><frameset> 视框格式总定义(Defines a set of frames)<br></td></tr></table> <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--> <script src="data/cache/home.js?R1y" type="text/javascript"></script> <div id="click_div"><table cellpadding="0" cellspacing="0" class="atd"> <tr></tr> </table> <script type="text/javascript"> function errorhandle_clickhandle(message, values) { if(values['id']) { showCreditPrompt(); show_click(values['idtype'], values['id'], values['clickid']); } } </script> </div> <!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]--> </div> <div class="o cl ptm pbm"> <a href="https://bbs.weiying.cn/home.php?mod=spacecp&amp;ac=favorite&amp;type=article&amp;id=21030&amp;handlekey=favoritearticlehk_21030" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">收藏</a> <a href="https://bbs.weiying.cn/home.php?mod=spacecp&amp;ac=share&amp;type=article&amp;id=21030&amp;handlekey=sharearticlehk_21030" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">分享</a> <a href="misc.php?mod=invite&amp;action=article&amp;id=21030" id="a_invite" onclick="showWindow('invite', this.href, 'get', 0);" class="oshr oivt">邀请</a> </div> </div> <!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]--> <!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]--> <div id="comment" class="bm"> <div class="bm_h cl"> <h3>最新评论</h3> </div> <div id="comment_ul" class="bm_c"><form id="cform" name="cform" action="portal.php?mod=portalcp&ac=comment" method="post" autocomplete="off"> <div class="tedt"> <div class="area"> <textarea name="message" rows="3" class="pt" id="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea> </div> </div> <input type="hidden" name="portal_referer" value="portal.php?mod=view&aid=21030#comment"> <input type="hidden" name="referer" value="portal.php?mod=view&aid=21030#comment" /> <input type="hidden" name="id" value="0" /> <input type="hidden" name="idtype" value="" /> <input type="hidden" name="aid" value="21030"> <input type="hidden" name="formhash" value="2ea503e6"> <input type="hidden" name="replysubmit" value="true"> <input type="hidden" name="commentsubmit" value="true" /> <p class="ptn"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn"><strong>评论</strong></button></p> </form> </div> </div> <!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]--> </div> <div class="sd pph"> <div class="drag"> <!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]--> </div> <div class="bm"> <div class="bm_h cl"> <h2>相关分类</h2> </div> <div class="bm_c"> <ul class="xl xl2 cl"><li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=21">设计资讯</a></li> <li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=22">平面设计</a></li> <li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=23">标志设计</a></li> <li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=24">空间设计</a></li> <li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=25">工业设计</a></li> <li><a href="https://bbs.weiying.cn/portal.php?mod=list&catid=26">网页设计</a></li> </ul> </div> </div> <div class="drag"> <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]--> </div> </div> </div> <div class="wp mtn"> <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]--> </div> <input type="hidden" id="portalview" value="1"> </div> <div id="ft" class="wp cl"> <div id="flk" class="y"> <p> <a href="//wpa.qq.com/msgrd?v=3&amp;uin=8828254&amp;site=微赢网络技术论坛&amp;menu=yes&amp;from=discuz" target="_blank" title="QQ"><img src="static/image/common/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><a href="https://bbs.weiying.cn/forum.php?mod=misc&action=showdarkroom" >小黑屋</a><span class="pipe">|</span><a href="topic-sitemap.html" target="_blank" >最新主题</a><span class="pipe">|</span><a href="https://bbs.weiying.cn/forum.php?showmobile=yes" >手机版</a><span class="pipe">|</span><strong><a href="http://bbs.weiying.cn" target="_blank">微赢网络技术论坛</a></strong> ( <a href="https://beian.miit.gov.cn/" target="_blank">苏ICP备08020429号</a> )<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?a66c064273122db3a05de72f6cd924eb"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script></p> <p class="xs0"> GMT+8, 2024-9-30 03:36<span id="debuginfo"> , Processed in 0.223390 second(s), 12 queries , Gzip On, MemCache On. </span> </p> </div> <div id="frt"> <p>Powered by <strong><a href="https://www.discuz.vip/" target="_blank">Discuz!</a></strong> <em>X3.5</em></p> <p class="xs0">&copy; 2001-2023 <a href="https://code.dismall.com/" target="_blank">Discuz! Team</a>.</p> </div></div> <script src="home.php?mod=misc&ac=sendmail&rand=1727638601" type="text/javascript"></script> <div id="scrolltop"> <span hidefocus="true"><a title="返回顶部" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>返回顶部</b></a></span> </div> <script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script> </body> </html>