无为居

无为无不为

« 正式启用新首页Wiki 不完全手册 »

XHTML + CSS 设计速记卡----语义标签

原则上一个xhtml文档所有的标签都应该是结构标签,需要表现的地方都使用css来控制。
来列一个

完整xhtml的结构标签

结构
body, head, html, title

文本
abbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var

链接
a

列表
dl, dt, dd, ol, ul, li

表单
form, input, label, select, option, textarea

表格
caption, table, td, th, tr

图片
img

对象
object, param

meta
meta

外部调用
link

基本
base

xhtml不鼓励使用的标签

能通过过渡定义的标签,但通不过严格定义。
<font> 文字的外观,大小和颜色(Defines the font face, size, and color of text)
<u> 文本下划线(Defines underlined text)
<center> 居中对齐(Defines centered text)
<s> 删除线(Defines strikethrough text)
<strike> 删除线(Defines strikethrough text)
<noframes> 无视框时的内容(Defines a noframe section)
<iframe> 定义嵌入视图(Defines an inline sub window (frame))
<isindex> 不建议使用(可搜寻,使用input代替)(Deprecated. Defines a single-line input field. Use <input> instead)
<dir> 目录式列举(Defines a directory list)
<menu> 菜单列表(Defines a menu list)
<basefont /> 定义基本字体(Defines a base font)
<applet> 定义java程序(Defines an applet)

能通过框架定义验证,不鼓励使用
<frame> 定义个别视框(Defines a sub window (a frame))
<frameset> 视框格式总定义(Defines a set of frames)

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

站内搜索


最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722

Copyright ebook99.com Some Rights Reserved.