<dfn>
CODE: <p><dfn title="Microsoft web browser">Internet Explorer</dfn> is the most popular browser used underwater.</p>
<ins>, <del>
知道del,就不要再用<s>做删除线了,用del显然更具有语义化。而且del还带有cite和datetime来表明删除的原因以及删除的时间。ins是表示插入,也有这样的属性。 例如:
CODE: <p>It really was <ins cite="rarara.html" datetime="20031024">very</ins> good.</p> <code>
表示是计算机代码。而默认样式为打字体。技术论坛和blog中经常遇到。 例如:
CODE: <code>p{margin:2px 0;}</code>
<abbr>、<acronym>
<abbr>标签是表示web页面上的简称,<acronym>标签为取首字母缩写。(注:这里把简称和缩写分开而论,简称范围比缩写大,取首字母的缩 写用<acronym>标签)Windows的IE6.0以下的浏览器暂不支持<abbr>标签。 在IE里,你可以应用CSS给<acronym>但是不能应用给<abbr>标签, IE会为<acronym>标签的title属性显示提示,但是会忽略<abbr>标签。 解决方法见: http://www.w3cn.org/article/translate/2005/115.html 例如:
CODE: <abbr title="Cascading Style Sheets">CSS</abbr>
CODE: <acronym title="Cascading Style Sheets">CSS</acronym >
alt属性和title属性
title属性用来为元素提供额外说明信息title属性可以用在除了base,basefont,head,html,meta,param,script和title之外的所有标签。但是并不是必须的。 alt属性为不能显示图像、窗体或applets的用户代理(UA),指定替换文字。替换文字的语言由lang属性指定。
CODE: <img src="/img/common/logo.gif" width="90" height="27" alt="bluediea.com">
CODE: <a href="http://www.jluvip.com/blog/article.asp?id=260" title="js获取单选按钮的数据">js获取单选按钮的数据</a>
参考资料:
默认样式: http://www.w3cn.org/article/tips/2005/116.html http://www.w3.org/TR/CSS21/sample.html 语义化: http://www.456bereastreet.com/lab/developing_with_web_standards/zh http://www.456bereastreet.com/lab/developing_with_web_standards http://www.w3cn.org/article/translate/2005/114.html http://www.w3cn.org/article/translate/2005/114.html http://www.junchenwu.com/2005/11/html_tags.html http://brainstormsandraves.com/articles/semantics/structure/ http://www.w3.org/TR/html401/struct/text.htm http://www.simplebits.com/bits/simplequiz/
资源链接:
Bad Tags: http://www.htmldog.com/guides/htmlintermediate/badtags/ The Q tag http://diveintomark.org/archives/2002/05/04/the_q_tag HTML, XHTML, semantics and the future of the web http://www.westciv.com/style_master/house/good_oil/xhtml/index.html
经典论坛讨论: http://bbs.blueidea.com/thread-2658231-1-1.html
出处:蓝色理想
责任编辑:moby
上一页 语义化你的HTML标签和属性 [3] 下一页
◎进入论坛网站综合、网页制作版块参加讨论
|