<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>omiga &#187; HTML</title>
	<atom:link href="http://omiga.org/blog/archives/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://omiga.org/blog</link>
	<description>简单就好</description>
	<lastBuildDate>Fri, 03 Feb 2012 02:31:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>EditPlus使用详解</title>
		<link>http://omiga.org/blog/archives/1245</link>
		<comments>http://omiga.org/blog/archives/1245#comments</comments>
		<pubDate>Wed, 23 Dec 2009 12:55:34 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[EditPlus]]></category>
		<category><![CDATA[ep]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://omiga.org/blog/?p=1245</guid>
		<description><![CDATA[EditPlus（EP）帮助手册中列出了EP的主要功能： 语法高亮 Internet功能 HTML工具栏 文档选择器 用户工具和帮助文件 自动完成 素材文本窗口 文档模板 其他功能 其中“语法高亮”，“自动完成”和“文档模板”在EP中非常灵活，用户皆可根据自己需要进行配置。EP默认支持HTML、CSS、PHP、ASP、Perl、C/C++、Java、JavaScript 和 VBScript的语法高亮显示，基本上无需再做过多设置。而“自动完成”和“文档模板”默认支持有限，而且可能并不符合个人日常的一些编码习惯，那么则需要我们自己根据习惯进行配置，才能得心应手。 自动完成 自定义自动完成功能可分为两步：1.编写自动完成文件；2.指定关联路径。 #TITLE=CSS ;EditPlus Auto-completion file v1.0 written by wondger(http://omiga.org). ;This file is provided as a default auto-completion file for CSS. #CASE=n #T=reset /*reset*/ body,h1,h2,h3,h4,h5,h6,ul,ol,p,dl,dt,dd,th,td{margin:0; padding:0;} table{border-collapse:collapse;} li{list-style:none;} em{font-style:normal;} img{border:none;} a img{vertical-algin:top;} /*reset*/ #T={ {^!} #T=m margin:^!px; #T=ma margin:0 auto;^! #T=mt margin-top:^!px; #T=mr margin-right:^!px; [...]]]></description>
			<content:encoded><![CDATA[<p>EditPlus（EP）帮助手册中列出了EP的主要功能：</p>
<ul>
<li><strong>语法高亮</strong></li>
<li>Internet功能</li>
<li>HTML工具栏</li>
<li>文档选择器</li>
<li>用户工具和帮助文件</li>
<li><strong>自动完成</strong></li>
<li>素材文本窗口</li>
<li><strong>文档模板</strong></li>
<li>其他功能</li>
</ul>
<p>其中“语法高亮”，“自动完成”和“文档模板”在EP中非常灵活，用户皆可根据自己需要进行配置。EP默认支持HTML、CSS、PHP、ASP、Perl、C/C++、Java、JavaScript 和 VBScript的语法高亮显示，基本上无需再做过多设置。而“自动完成”和“文档模板”默认支持有限，而且可能并不符合个人日常的一些编码习惯，那么则需要我们自己根据习惯进行配置，才能得心应手。</p>
<p><strong>自动完成</strong></p>
<p>自定义自动完成功能可分为两步：1.编写自动完成文件；2.指定关联路径。</p>
<pre>#TITLE=CSS
;EditPlus Auto-completion file v1.0 written by wondger(http://omiga.org).
;This file is provided as a default auto-completion file for CSS.
#CASE=n
#T=reset
/*reset*/
body,h1,h2,h3,h4,h5,h6,ul,ol,p,dl,dt,dd,th,td{margin:0; padding:0;}
table{border-collapse:collapse;}
li{list-style:none;}
em{font-style:normal;}
img{border:none;}
a img{vertical-algin:top;}
/*reset*/
#T={
{^!}
#T=m
margin:^!px;
#T=ma
margin:0 auto;^!
#T=mt
margin-top:^!px;
#T=mr
margin-right:^!px;
#T=mb
margin-bottom:^!px;
#T=ml
margin-left:^!px;</pre>
<p>以上为一段CSS自动完成文件代码。自动完成文件每个语句必须以“#”开头。</p>
<ul>
<li>#TITLE &#8211; 为自动完成文件标题</li>
<li>#CASE &#8211; 指定是否区分大小写。‘y’表示是，‘n’表示否。默认值是‘n’。</li>
<li>每个自动完成片段以“<span>#t=</span>title”形式的开始。title是你要你扩展的缩写词，换行后开始匹配自动完成文本，直到遇到“#”符号。如：</li>
</ul>
<pre>#T=m
margin:^!px;</pre>
<ul>
<li>^! &#8211; 指定每一次自动完成后光标的停留位置。</li>
<li>^ &#8211; 转义字符，如果需要在自动完成文本中插入“^”或“#”则需要先进行转义：“^^”，“^#”。</li>
</ul>
<p>自动完成文件编写完成后，保存为.acp文件在任一文件目录即可。<span id="more-1245"></span></p>
<p>随后打开“工具”菜单-“首选项”-“文件”-“设置和语法”，为相关文件类型设置自动完成文件，“确定”完成设置。</p>
<p><img class="alignnone size-full wp-image-1250" title="ep_acp" src="http://omiga.org/img//ep_acp.jpg" alt="ep_acp" width="582" height="383" /></p>
<p>自此自动完成功能配置完成，在对应类型的文件编码中，空格触发自动完成功能。当然，你可以通过Shift 键或Window徽标键来暂时禁止此功能。</p>
<p><strong>文档模板</strong></p>
<p>我们日常处理的不论是HTML文档，还是CSS,JavaScript文档，都存在一定的文档规范，比如版权信息，title，keywords，description，或者一些固定的文档结构。我们显然不希望每次新建这些文档的同时，都需要重新录入这些代码，即使是“Ctrl+v”也还是有损效率。那么EP的“文档模板”则可帮助我们完成所有的工作。</p>
<p>自定义“文档模板”也分为两步：1.编写文档模板，2.关联模板</p>
<p>编写文档模板非常简单，无任何语法。比如，我需要一个HTML文档模板，那么新建一个HTML文档如下。</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;meta http-equiv="Content-Script-Type" content="text/javascript" /&gt;
&lt;title&gt;title | wondger@gmail.com/&lt;/title&gt;
&lt;meta name="keywords" content="" /&gt;
&lt;meta name="description" content="" /&gt;
&lt;meta name="robots" content="all" /&gt;
&lt;meta name="author" content="wondger" /&gt;
&lt;style type="text/css"&gt;

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;/body&gt;
&lt;script type="text/javascript"&gt;
//&lt;![CDATA[

//]]&gt;
&lt;/script&gt;
&lt;/html&gt;</pre>
<p>根据个人需要编写模板完成后，保存为.html在任一文件目录。</p>
<p>随后打开“工具”菜单-“首选项”-“文件”-“模板”，在模板列表中选择相应模板关联模板文件即可。模板可以是默认模板，也可以新建模板（MY_PAGE）。</p>
<p><img class="alignnone size-full wp-image-1255" title="ep_tp" src="http://omiga.org/img//ep_tp.jpg" alt="ep_tp" width="582" height="383" /></p>
<p>这样便完成“文档模板”设置，现在文件新建菜单中便可选择新建该模板文档。（其实你还可以自定义新建文档快捷键，稍后介绍）</p>
<p><img class="alignnone size-full wp-image-1256" title="ep_new" src="http://omiga.org/img//ep_new.jpg" alt="ep_new" width="582" height="383" /></p>
<p><span style="text-decoration: underline;"><strong>其他功能</strong></span></p>
<p><strong>自定义快捷键</strong></p>
<p>EP所有操作的快捷键皆在“工具”菜单-“首选项”-“工具”-“键盘”中进行设置。我们以新建模板文档为例。</p>
<p><img class="alignnone size-full wp-image-1257" title="ep_hotkey" src="http://omiga.org/img//ep_hotkey.jpg" alt="ep_hotkey" width="582" height="383" /></p>
<p>在“文件”菜单的“命令”中并不存在新建的“MY_PAGE”模板，那么如何自定义“新建MY_PAGE文档”的快捷键？其实这里存在一个对应关系，在“文件”菜单的“命令”列表中存在一个“模板1”-“模板20”的选项列表，这就对应于我们的自定义模板。</p>
<p><img class="alignnone size-full wp-image-1258" title="ep_md" src="http://omiga.org/img//ep_md.jpg" alt="ep_md" width="582" height="383" /></p>
<p>在EP的模板列表中默认的HTML和XHTML模板无法删除，那么我们自定义的模板则按照从上到下的顺序为“模板1”、“模板2”&#8230;（其实我在想第21个自定义模板怎么办？-_-!）。这里“MY_PAGE”对应于“模板5”，在设置快捷键的时候会提示该快捷键是否已定义，如果分配已定义的快捷键，那么较早的定义会被覆盖。一个命令可以定义多个快捷键。</p>
<p><strong>自动保存</strong></p>
<p>EP具有定时自动保存的功能，保存间隔时间可在“工具”菜单-“首选项”-“文件”中进行设置。</p>
<p><strong>保存时创建备份</strong></p>
<p>EP默认会在保存时自动创建一个.bak备份文件。备份文件存放目录，后缀名皆可自定义。</p>
<p><strong>HTML工具栏</strong></p>
<p><strong><img class="alignnone size-full wp-image-1259" title="ep_toolbar" src="http://omiga.org/img//ep_toolbar.jpg" alt="ep_toolbar" width="582" height="26" /><br />
</strong></p>
<p>EP具有强大的HTML工具栏，具有插入图像、选择颜色、插入特殊字符、表格、段落、列表、注释、表单等丰富功能。这个HTML工具同时也是可以在“工具”菜单-“首选项”-“工具”-“工具栏”自定义。</p>
<p>OK，以上内容为个人认为是在EP使用中较多涉及的一些功能。除此之外关于软件本身的一些设置，如字体，颜色，背景，布局等，大家就慢慢折腾吧！</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2009. |
<a href="http://omiga.org/blog/archives/1245">Permalink</a> |
<a href="http://omiga.org/blog/archives/1245#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/1245&title=EditPlus使用详解">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/css" rel="tag">css</a>, <a href="http://omiga.org/blog/archives/tag/editplus" rel="tag">EditPlus</a>, <a href="http://omiga.org/blog/archives/tag/ep" rel="tag">ep</a>, <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/javascript" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/1245/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5</title>
		<link>http://omiga.org/blog/archives/1114</link>
		<comments>http://omiga.org/blog/archives/1114#comments</comments>
		<pubDate>Fri, 03 Jul 2009 01:38:13 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XHTML2]]></category>

		<guid isPermaLink="false">http://omiga.org/blog/?p=1114</guid>
		<description><![CDATA[2009-07-02: Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the Working Group, W3C hopes to accelerate the progress of HTML 5 and clarify W3C&#8217;s position regarding the future of [...]]]></description>
			<content:encoded><![CDATA[<div id="item119">
<blockquote><p><span>2009-07-02:</span> Today the Director announces that when the <a href="http://www.w3.org/2007/03/XHTML2-WG-charter">XHTML 2 Working Group charter</a> expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the <a href="http://www.w3.org/html/wg/">Working Group</a>, W3C hopes to accelerate the progress of <a href="http://www.w3.org/TR/html5">HTML 5</a> and clarify W3C&#8217;s position regarding the future of HTML. A <a href="http://www.w3.org/2009/06/xhtml-faq.html">FAQ</a> answers questions about the future of deliverables of the XHTML 2 Working Group, and the status of various discussions related to HTML. Learn more about the <a href="http://www.w3.org/MarkUp/Activity">HTML Activity</a>. <span> (<a title="XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5" href="http://www.w3.org/News/2009#item119">Permalink</a>) </span></p></blockquote>
</div>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2009. |
<a href="http://omiga.org/blog/archives/1114">Permalink</a> |
<a href="http://omiga.org/blog/archives/1114#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/1114&title=XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/html5" rel="tag">HTML5</a>, <a href="http://omiga.org/blog/archives/tag/xhtml" rel="tag">XHTML</a>, <a href="http://omiga.org/blog/archives/tag/xhtml2" rel="tag">XHTML2</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/1114/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5</title>
		<link>http://omiga.org/blog/archives/1106</link>
		<comments>http://omiga.org/blog/archives/1106#comments</comments>
		<pubDate>Mon, 29 Jun 2009 05:19:04 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://omiga.org/blog/?p=1106</guid>
		<description><![CDATA[尽管HTML5草案最终定稿要在遥远的2012，而最终的标准的正式发布可能会在更遥远的2022，但是还是可以YY一下，听说safari4已经支持HTML5了～··· HTML5主要在嵌入音频、视频、图片的函数、客户端数据存储，以及交互式文档方面增加了很多新的特性，同时也包括新的页面元素，比如 &#60;header&#62;, &#60;section&#62;, &#60;footer&#62;, 以及 &#60;figure&#62;。 &#60;article&#62; &#60;aside&#62; &#60;audio&#62; &#60;canvas&#62; &#60;command&#62; &#60;datagrid&#62; &#60;datalist&#62; &#60;datatemplate&#62; &#60;details&#62; &#60;dialog&#62; &#60;embed&#62; &#60;event-source&#62; &#60;figure&#62; &#60;footer&#62; &#60;header&#62; &#60;m&#62; &#60;meter&#62; &#60;nav&#62; &#60;nest&#62; &#60;output&#62; &#60;progress&#62; &#60;rule&#62; &#60;section&#62; &#60;source&#62; &#60;time&#62; &#60;video&#62; 同时HTML5还增加了7个标准属性，而不再支持HTML 4.01 中的accesskey属性。 contenteditable　设置是否允许用户编辑元素。 contentextmenu　给元素设置一个上下文菜单。 draggable　设置是否允许用户拖动元素。 irrelevant　设置元素是否相关。不显示非相关的元素。 ref　引用另一个文档或本文档上另一个位置。仅在 template 属性设置时使用。 registrationmark　为元素设置拍照。可规定于任何 &#60;rule&#62; 元素的后代元素，除了 &#60;nest&#62; 元素。 template　引用应该应用到该元素的另一个文档或本文档上另一个位置。 当然，也更新了很多事件属性。 onabort　发生 abort 事件时运行脚本。 onbeforeonload　在元素加载前运行脚本。 oncontextmenu　当菜单被触发时运行脚本。 [...]]]></description>
			<content:encoded><![CDATA[<p>尽管HTML5草案最终定稿要在遥远的2012，而最终的标准的<a href="http://www.yeeyan.com/articles/view/saturn/14032">正式发布</a>可能会在更遥远的2022，但是还是可以YY一下，听说safari4已经支持HTML5了～···</p>
<p>HTML5主要在嵌入音频、视频、图片的函数、客户端数据存储，以及交互式文档方面增加了很多新的特性，同时也包括新的页面元素，比如 &lt;header&gt;, &lt;section&gt;, &lt;footer&gt;, 以及 &lt;figure&gt;。</p>
<ul>
<li><a href="http://www.w3school.com.cn/html5/html5_article.asp">&lt;article&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_aside.asp">&lt;aside&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_audio.asp">&lt;audio&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_canvas.asp">&lt;canvas&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_command.asp">&lt;command&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_datagrid.asp">&lt;datagrid&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_datalist.asp">&lt;datalist&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_datatemplate.asp">&lt;datatemplate&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_details.asp">&lt;details&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_dialog.asp">&lt;dialog&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_embed.asp">&lt;embed&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_eventsource.asp">&lt;event-source&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_figure.asp">&lt;figure&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_footer.asp">&lt;footer&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_header.asp">&lt;header&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_m.asp">&lt;m&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_meter.asp">&lt;meter&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_nav.asp">&lt;nav&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_nest.asp">&lt;nest&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_output.asp">&lt;output&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_progress.asp">&lt;progress&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_rule.asp">&lt;rule&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_section.asp">&lt;section&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_source.asp">&lt;source&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_time.asp">&lt;time&gt;</a></li>
<li><a href="http://www.w3school.com.cn/html5/html5_video.asp">&lt;video&gt;</a></li>
</ul>
<p>同时HTML5还增加了7个标准属性，而不再支持HTML 4.01 中的accesskey属性。</p>
<ul>
<li>contenteditable　设置是否允许用户编辑元素。</li>
<li>contentextmenu　给元素设置一个上下文菜单。</li>
<li>draggable　设置是否允许用户拖动元素。</li>
<li>irrelevant　设置元素是否相关。不显示非相关的元素。</li>
<li>ref　引用另一个文档或本文档上另一个位置。仅在 template 属性设置时使用。</li>
<li>registrationmark　为元素设置拍照。可规定于任何 &lt;rule&gt; 元素的后代元素，除了 &lt;nest&gt; 元素。</li>
<li>template　引用应该应用到该元素的另一个文档或本文档上另一个位置。</li>
</ul>
<p>当然，也更新了很多事件属性。</p>
<ul>
<li>onabort　发生 abort 事件时运行脚本。</li>
<li>onbeforeonload　在元素加载前运行脚本。</li>
<li>oncontextmenu　当菜单被触发时运行脚本。</li>
<li>ondrag　只要脚本在被拖动就运行脚本。</li>
<li>ondragend 　在拖动操作结束时运行脚本。</li>
<li>ondragenter　当元素被拖动到一个合法的放置目标时，执行脚本。</li>
<li>ondragleave　当元素离开合法的放置目标时。</li>
<li>ondragover　只要元素正在合法的放置目标上拖动时，就执行脚本。</li>
<li>ondragstart　在拖动操作开始时执行脚本。</li>
<li>ondrop　当元素正在被拖动时执行脚本。</li>
<li>onerror　当元素加载的过程中出现错误时执行脚本。</li>
<li>onmessage　当 message 事件触发时执行脚本。</li>
<li>onmousewheel　当鼠标滚轮滚动时执行脚本。</li>
<li>onresize　当元素调整大小时运行脚本。</li>
<li>onscroll　当元素滚动条被滚动时执行脚本。</li>
<li>onunload　当文档卸载时运行脚本。</li>
</ul>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2009. |
<a href="http://omiga.org/blog/archives/1106">Permalink</a> |
<a href="http://omiga.org/blog/archives/1106#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/1106&title=HTML5">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/html5" rel="tag">HTML5</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/1106/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>label的隐式连接</title>
		<link>http://omiga.org/blog/archives/975</link>
		<comments>http://omiga.org/blog/archives/975#comments</comments>
		<pubDate>Fri, 13 Mar 2009 02:37:39 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://omiga.org/blog/?p=975</guid>
		<description><![CDATA[label用来向控件定义标注（标记），如果不是用于这个用途，那完全也没有必要使用label，使用span就可以了。使用label可以与控件建立一种连接，当选择label时，即会触发此控件，即该控件会因为与之连接的label的选择而获取到焦点。 通常这一工作是通过label标签的for属性来完成的，将for属性指向一个控件的id即完成连接。 &#60;label for="uname"&#62;姓名：&#60;/label&#62;&#60;input id="uname" name="u_name" type="text" /&#62; 这就是label的显示连接。 而隐式连接就不再需要for属性，只需简单地将控件包含在label标签中即可。 &#60;label&#62;密码: &#60;input type="password" name="psw" /&#62;&#60;/label&#62; label与其他控件建立连接的这两种方法，绝大部分现代浏览器都是支持的（IE6不支持隐式连接方式）。隐式方式虽简单快捷却缺乏良好的语义结构，所以还是不赞成使用；显示方式良好的结构已表现出一定的语义（结构也应该是具有语义的），所以显示方式仍然是最佳的选择。 © omiga for omiga, 2009. &#124; Permalink &#124; 2 comments &#124; Add to del.icio.us Post tags: HTML, label, XHTML]]></description>
			<content:encoded><![CDATA[<p>label用来向控件定义标注（标记），如果不是用于这个用途，那完全也没有必要使用label，使用span就可以了。使用label可以与控件建立一种连接，当选择label时，即会触发此控件，即该控件会因为与之连接的label的选择而获取到焦点。</p>
<p>通常这一工作是通过label标签的for属性来完成的，将for属性指向一个控件的id即完成连接。</p>
<pre>&lt;label for="uname"&gt;姓名：&lt;/label&gt;&lt;input id="uname" name="u_name" type="text" /&gt;</pre>
<p>这就是label的显示连接。</p>
<p>而隐式连接就不再需要for属性，只需简单地将控件包含在label标签中即可。</p>
<pre>&lt;label&gt;密码: &lt;input type="password" name="psw" /&gt;&lt;/label&gt;</pre>
<p>label与其他控件建立连接的这两种方法，绝大部分现代浏览器都是支持的（IE6不支持隐式连接方式）。隐式方式虽简单快捷却缺乏良好的语义结构，所以还是不赞成使用；显示方式良好的结构已表现出一定的语义（结构也应该是具有语义的），所以显示方式仍然是最佳的选择。</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2009. |
<a href="http://omiga.org/blog/archives/975">Permalink</a> |
<a href="http://omiga.org/blog/archives/975#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/975&title=label的隐式连接">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/label" rel="tag">label</a>, <a href="http://omiga.org/blog/archives/tag/xhtml" rel="tag">XHTML</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/975/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>进一步认识table</title>
		<link>http://omiga.org/blog/archives/132</link>
		<comments>http://omiga.org/blog/archives/132#comments</comments>
		<pubDate>Thu, 08 May 2008 08:18:28 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://omiga.org/blog/?p=132</guid>
		<description><![CDATA[基础的东西在这里，就不重复了～ &#60;caption&#62; &#60;catpiton&#62;用于定义一个表格的标题，书写时候需紧随&#60;table&#62;标签之后。可通过样式属性：caption-side:left 设置标题在表格中所处的位置。但是目前仅非IE浏览器支持该样式属性，而IE浏览器中可通过标签的align属性完成（IE6,IE7仅支持top,bottom）。同时&#60;caption&#62;标签无法继承其上级table的某些样式属性（如backgroud，border等）。同时FF对caption的出来还表现出一些异常，如当对其上级&#60;table&#62;设置外边距时，&#60;caption&#62;并不会随上级&#60;table&#62;流动～查看演示 &#60;colgroup&#62;,&#60;col&#62; &#60;colgroup&#62;用于对表格中的列进行分组。如：我们将表格中的第一列设置为红字白底。 查看演示我们可以看到不同浏览器对该标签的支持都不尽相同，safari对该标签的支持相当苛刻，需将该标签紧随&#60;caption&#62;/&#60;table&#62;书写。同时在非IE浏览器中该标签的书写位置不会影响到&#60;thead&#62;中单元格的显示属性，&#60;thead&#62;中的列亦可应用设置。而IE中只有位于&#60;colgroup&#62;之后的表格对象方可应用此标签设置，同时部分浏览器对通过该标签进行的样式设置无效，经测试，目前仅IE支持最好。查看演示 &#60;col&#62;为表格中一个或多个列定义属性值，只能在colgroup中使用此元素。如：将表格中的第一列设置为红字白底，第二，第三列设置为黑底白字。查看演示 &#60;col&#62;的span属性定义其影响的列数～ 表格边框 表格的默认边框是很丑陋的，一个最为关键的问题是相邻单元格的重复边框，所以我们不得不动手对其进行美化。 方法一：取消默认的表格,单元格设置，将单元格间距设置为指定宽度，为表格设置背景色进而实现无重复边框。查看演示 方法二：更为简单有效的方法是通过设置border-collapes。查看演示 © omiga for omiga, 2008. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: HTML, table, XHTML]]></description>
			<content:encoded><![CDATA[<p>基础的东西在<a href="http://omiga.org/blog/archives/35" target="_blank">这里</a>，就不重复了～</p>
<p><strong>&lt;caption&gt;</strong></p>
<p>&lt;catpiton&gt;用于定义一个表格的标题，书写时候需紧随&lt;table&gt;标签之后。可通过样式属性：caption-side:left 设置标题在表格中所处的位置。但是目前仅非IE浏览器支持该样式属性，而IE浏览器中可通过标签的align属性完成（IE6,IE7仅支持top,bottom）。同时&lt;caption&gt;标签无法继承其上级table的某些样式属性（如backgroud，border等）。同时FF对caption的出来还表现出一些异常，如当对其上级&lt;table&gt;设置外边距时，&lt;caption&gt;并不会随上级&lt;table&gt;流动～<a href="http://omiga.org/lab/table2/caption.html" target="_blank">查看演示</a></p>
<p><strong>&lt;colgroup&gt;,&lt;col&gt;</strong></p>
<p>&lt;colgroup&gt;用于对表格中的列进行分组。如：我们将表格中的第一列设置为红字白底。</p>
<p><a href="http://omiga.org/lab/table2/colgroup1.html" target="_blank">查看演示</a>我们可以看到不同浏览器对该标签的支持都不尽相同，safari对该标签的支持相当苛刻，需将该标签紧随&lt;caption&gt;/&lt;table&gt;书写。同时在非IE浏览器中该标签的书写位置不会影响到&lt;thead&gt;中单元格的显示属性，&lt;thead&gt;中的列亦可应用设置。而IE中只有位于&lt;colgroup&gt;之后的表格对象方可应用此标签设置，同时部分浏览器对通过该标签进行的样式设置无效，经测试，目前仅IE支持最好。<a href="http://omiga.org/lab/table2/colgroup2.html" target="_blank">查看演示</a></p>
<p>&lt;col&gt;为表格中一个或多个列定义属性值，只能在colgroup中使用此元素。如：将表格中的第一列设置为红字白底，第二，第三列设置为黑底白字。<a href="http://omiga.org/lab/table2/colgroup3.html" target="_blank">查看演示</a></p>
<p>&lt;col&gt;的span属性定义其影响的列数～</p>
<p><strong>表格边框</strong></p>
<p>表格的默认边框是很丑陋的，一个最为关键的问题是相邻单元格的重复边框，所以我们不得不动手对其进行美化。</p>
<p>方法一：取消默认的表格,单元格设置，将单元格间距设置为指定宽度，为表格设置背景色进而实现无重复边框。<a href="http://omiga.org/lab/table2/border1.html" target="_blank">查看演示</a></p>
<p>方法二：更为简单有效的方法是通过设置border-collapes。<a href="http://omiga.org/lab/table2/border2.html" target="_blank">查看演示</a></p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2008. |
<a href="http://omiga.org/blog/archives/132">Permalink</a> |
<a href="http://omiga.org/blog/archives/132#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/132&title=进一步认识table">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/table" rel="tag">table</a>, <a href="http://omiga.org/blog/archives/tag/xhtml" rel="tag">XHTML</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&lt;meta&gt;标签详解</title>
		<link>http://omiga.org/blog/archives/107</link>
		<comments>http://omiga.org/blog/archives/107#comments</comments>
		<pubDate>Wed, 26 Mar 2008 01:38:06 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://omiga.org/2008/03/26/%e6%a0%87%e7%ad%be%e8%af%a6%e8%a7%a3/</guid>
		<description><![CDATA[定义和用法 &#60;meta&#62; 元素可提供有关页面的元信息（meta-information），比如针对搜索引擎和更新频度的描述和关键词。 &#60;meta&#62; 标签位于文档的头部，不包含任何内容。&#60;meta&#62; 标签的属性定义了与文档相关联的名称/值对。 HTML 与 XHTML 之间的差异 在 HTML 中，&#60;meta&#62; 标签没有结束标签。 在 XHTML 中，&#60;meta&#62; 标签必须被正确地关闭。 提示和注释： 注释：&#60;meta&#62; 标签永远位于 head 元素内部。 注释：元数据总是以名称/值的形式被成对传递的。 必需的属性 DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset. 属性 值 描述 DTD content some_text 定义与 http-equiv 或 name 属性相关的元信息 STF 可选的属性 DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset. 属性 值 描述 DTD http-equiv [...]]]></description>
			<content:encoded><![CDATA[<p><strong>定义和用法</strong></p>
<p>&lt;meta&gt; 元素可提供有关页面的元信息（meta-information），比如针对搜索引擎和更新频度的描述和关键词。</p>
<p>&lt;meta&gt; 标签位于文档的头部，不包含任何内容。&lt;meta&gt; 标签的属性定义了与文档相关联的名称/值对。</p>
<p><strong>HTML 与 XHTML 之间的差异</strong></p>
<p>在 HTML 中，&lt;meta&gt; 标签没有结束标签。 在 XHTML 中，&lt;meta&gt; 标签必须被正确地关闭。</p>
<p><strong>提示和注释：</strong></p>
<p class="note"><span>注释：</span>&lt;meta&gt; 标签永远位于 head 元素内部。</p>
<p class="note"><span>注释：</span>元数据总是以名称/值的形式被成对传递的。</p>
<p><strong>必需的属性</strong> DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset.</p>
<table class="dataintable" style="height: 48px;" border="1" cellspacing="0" cellpadding="0" width="484">
<tbody>
<tr>
<th width="62" align="center">属性</th>
<th width="85" align="center">值</th>
<th width="297" align="center">描述</th>
<th width="38" align="center">DTD</th>
</tr>
<tr>
<td width="63">content</td>
<td width="86">some_text</td>
<td width="294">定义与 http-equiv 或 name 属性相关的元信息</td>
<td width="40">STF</td>
</tr>
</tbody>
</table>
<p><strong>可选的属性</strong> DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset.</p>
<table class="dataintable" style="height: 210px;" border="1" cellspacing="0" cellpadding="0" width="497">
<tbody>
<tr>
<th width="82" align="center">属性</th>
<th width="100" align="center">值</th>
<th width="277" align="center">描述</th>
<th width="36" align="center">DTD</th>
</tr>
<tr>
<td width="83">http-equiv</td>
<td width="101">content-type<br />
expires<br />
refresh<br />
set-cookie</td>
<td width="274">把 content 属性关联到 HTTP头部。</td>
<td width="38">STF</td>
</tr>
<tr>
<td width="83">name</td>
<td width="102">author description keywords generator revised others</td>
<td width="272">把 content 属性关联到一个名称。</td>
<td width="40">STF</td>
</tr>
<tr>
<td width="84">scheme</td>
<td width="102">some_text</td>
<td width="270">定义一种用来翻译 content 属性值的格式。</td>
<td width="42">STF</td>
</tr>
</tbody>
</table>
<p><strong>name 属性</strong></p>
<p>name 属性提供了名称/值对中的名称。HTML 和 XHTML 标签都没有指定任何预先定义的 &lt;meta&gt; 名称。通常情况下，您可以自由使用对自己和源文档的读者来说富有意义的名称。 “keywords” 是一个经常被用到的名称。它为文档定义了一组关键字。某些搜索引擎在遇到这些关键字时，会用这些关键字对文档进行分类。 类似这样的 meta 标签可能对于进入搜索引擎的索引有帮助：</p>
<pre>&lt;meta <code>name="keywords"</code> content="HTML,ASP,PHP,SQL"&gt;</pre>
<p>如果没有提供 name 属性，那么名称/值对中的名称会采用 http-equiv 属性的值。</p>
<p><strong>http-</strong><strong>equiv 属性</strong></p>
<p>http-equiv 属性为名称/值对提供了名称。并指示服务器在发送实际的文档之前先在要传送给浏览器的 MIME 文档头部包含名称/值对。 当服务器向浏览器发送文档时，会先发送许多名称/值对。虽然有些服务器会发送许多这种名称/值对，但是所有服务器都至少要发送一个：content-type:text/html。这将告诉浏览器准备接受一个 HTML 文档。 使用带有 http-equiv 属性的 &lt;meta&gt; 标签时，服务器将把名称/值对添加到发送给浏览器的内容头部。例如，添加：</p>
<pre>&lt;meta <code>http-equiv="charset"</code> content="iso-8859-1"&gt;
&lt;meta <code>http-equiv="expires"</code> content="31 Dec 2008"&gt;</pre>
<p>这样发送到浏览器的头部就应该包含：</p>
<pre>content-type: text/html
charset:iso-8859-1
expires:31 Dec 2007</pre>
<p>当然，只有浏览器可以接受这些附加的头部字段，并能以适当的方式使用它们时，这些字段才有意义。</p>
<ol>
<li>&lt;meta http-equiv=”Content-Type” content=”text/html”;charset=gb_2312&#8243;&gt;和&lt;meta http-equiv=”Content-Language” content=”zh-CN”&gt;用以说明主页制作所使用的文字以及语言；</li>
<li>&lt;meta http-equiv=”Refresh” content=”n;url=http://yourlink”&gt;定时让网页在指定的时间n内，跳转到页面http://yourlink；</li>
<li>&lt;meta http-equiv=”Expires” content=”Mon,12 May 2001 00:20:00 GMT”&gt;可以用于设定网页的到期时间，一旦过期则必须到服务器上重新调用。需要注意的是必须使用GMT时间格式；</li>
<li>&lt;meta http-equiv=”set-cookie” content=”Mon,12 May 2001 00:20:00 GMT”&gt;cookie设定，如果网页过期，存盘的cookie将被删除。需要注意的也是必须使用GMT时间格式；</li>
</ol>
<p><strong>content 属性</strong></p>
<p>content 属性提供了名称/值对中的值。该值可以是任何有效的字符串。 content 属性始终要和 name 属性或 http-equiv 属性一起使用。</p>
<p><strong>scheme 属性</strong></p>
<p>scheme 属性用于指定要用来翻译属性值的方案。此方案应该在由 &lt;head&gt; 标签的 profile 属性指定的概况文件中进行了定义。</p>
<p><strong>标准属性</strong> dir, lang, xml:lang</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2008. |
<a href="http://omiga.org/blog/archives/107">Permalink</a> |
<a href="http://omiga.org/blog/archives/107#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/107&title=&lt;meta&gt;标签详解">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/meta" rel="tag">meta</a>, <a href="http://omiga.org/blog/archives/tag/seo" rel="tag">seo</a>, <a href="http://omiga.org/blog/archives/tag/xhtml" rel="tag">XHTML</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML4默认样式</title>
		<link>http://omiga.org/blog/archives/90</link>
		<comments>http://omiga.org/blog/archives/90#comments</comments>
		<pubDate>Wed, 05 Mar 2008 14:18:58 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=90</guid>
		<description><![CDATA[html,address,blockquote,body,dd,div,dl,dt,fieldset,form,frame,frameset, h1,h2,h3,h4,h5,h6,noframes,ol,p,ul,center,dir,hr,menu,pre{display:block;} li{display:list-item;} head{display:none;} table{display:table;} tr{display:table-row;} thead{display:table-header-group;} tbody{display:table-row-group;} tfoot{display:table-footer-group;} col{display:table-column;} colgroup{display:table-column-group;} td,th{display:table-cell;} caption{display:table-caption;} th{font-weight:bolder; text-align:center;} caption{text-align:center;} body{margin:8px; line-height:1.12;} h1{font-size:2em; margin:.67em 0;} h2{font-size:1.5em; margin:.75em 0;} h3{font-size:1.17em; margin:.83em 0;} h4,p,blockquote,ul,fieldset,form,ol,dl,dir,menu{margin:1.12em 0;} h5{font-size:.83em; margin:1.5em 0;} h6{font-size:.75em; margin:1.67em 0;} h1,h2,h3,h4,h5,h6,b,strong{font-weight:bolder;} blockquote{margin-left:40px; margin-right:40px;} i,cite,em,var,address{font-style:italic;} pre,tt,code,kbd,samp{font-family:monospace;} pre{white-space:pre;} button,textarea,input,object,select{display:inline-block;} big{font-size:1.17em;} small,sub,sup{font-size:.83em;} sub{vertical-align:sub;} sup{vertical-align:super;} table{border-spacing:2px;} thead,tbody,tfoot{vertical-align:middle;} td,th{vertical-align:inherit;} s,strike,del{text-decoration:line-through;} hr{border:1px inset;} ol,ul,dir,menu,dd{margin-left:40px;} ol{list-style-type:decimal;} ol [...]]]></description>
			<content:encoded><![CDATA[<pre>html,address,blockquote,body,dd,div,dl,dt,fieldset,form,frame,frameset,
h1,h2,h3,h4,h5,h6,noframes,ol,p,ul,center,dir,hr,menu,pre{display:block;}
li{display:list-item;}
head{display:none;}
table{display:table;}
tr{display:table-row;}
thead{display:table-header-group;}
tbody{display:table-row-group;}
tfoot{display:table-footer-group;}
col{display:table-column;}
colgroup{display:table-column-group;}
td,th{display:table-cell;}
caption{display:table-caption;}
th{font-weight:bolder; text-align:center;}
caption{text-align:center;}
body{margin:8px; line-height:1.12;}
h1{font-size:2em; margin:.67em 0;}
h2{font-size:1.5em; margin:.75em 0;}
h3{font-size:1.17em; margin:.83em 0;}
h4,p,blockquote,ul,fieldset,form,ol,dl,dir,menu{margin:1.12em 0;}
h5{font-size:.83em; margin:1.5em 0;}
h6{font-size:.75em; margin:1.67em 0;}
h1,h2,h3,h4,h5,h6,b,strong{font-weight:bolder;}
blockquote{margin-left:40px; margin-right:40px;}
i,cite,em,var,address{font-style:italic;}
pre,tt,code,kbd,samp{font-family:monospace;}
pre{white-space:pre;}
button,textarea,input,object,select{display:inline-block;}
big{font-size:1.17em;}
small,sub,sup{font-size:.83em;}
sub{vertical-align:sub;}
sup{vertical-align:super;}
table{border-spacing:2px;}
thead,tbody,tfoot{vertical-align:middle;}
td,th{vertical-align:inherit;}
s,strike,del{text-decoration:line-through;}
hr{border:1px inset;}
ol,ul,dir,menu,dd{margin-left:40px;}
ol{list-style-type:decimal;}
ol ul,ul ol,ul ul,ol ol{margin-top:0; margin-bottom:0;}
u,ins{text-decoration:underline;}
br:before{content:"\A";}
:before,:after{white-space:pre-line;}
center{text-align:center;}
abbr,acronym{font-variant:small-caps; letter-spacing:0.1em;}
:link,:visited{ text-decoration:underline;}
:focus{outline: thin dotted invert;}
/* Begin bidirectionality settings (do not change) */
BDO[DIR="ltr"]{direction:ltr; unicode-bidi:bidi-override;}
BDO[DIR="rtl"]{direction:rtl; unicode-bidi:bidi-override;}
*[DIR="ltr"]{direction:ltr; unicode-bidi:embed;}
*[DIR="rtl"]{direction:rtl; unicode-bidi:embed;}
@media print{
h1{ page-break-before: always;}
h1,h2,h3,h4,h5,h6{page-break-after:avoid;}
　　ul,ol,dl{page-break-before:avoid;}
}</pre>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2008. |
<a href="http://omiga.org/blog/archives/90">Permalink</a> |
<a href="http://omiga.org/blog/archives/90#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/90&title=HTML4默认样式">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/style" rel="tag">style</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/90/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>你记得多少HTML标签？</title>
		<link>http://omiga.org/blog/archives/49</link>
		<comments>http://omiga.org/blog/archives/49#comments</comments>
		<pubDate>Thu, 06 Dec 2007 23:35:13 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=49</guid>
		<description><![CDATA[极度汗颜～···用了五分钟，抓破脑袋也只写出了51个，还有40没想出来。看结果，没想出来的，要么是用的最多的，比如我都没想出来，要么就是我根本不知道的。51个，算算～···[redface]，原来还没有及格呀～···看来我对HTML还是一无所知～ 标记一下 我写出来的: A, B, BODY, CAPTION, CENTER, CODE, COL, DD, DIV, DL, DT, EM, FONT, FORM, H1, H2, H3, H4, H5, H6, HR, HTML, I, IMG, INPUT, LABEL, LI, MAP, MENU, META, OBJECT, OL, P, PRE, S, SCRIPT, Select, SPAN, STRONG, STYLE, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, U, UL。 这是我没写出来的:(似乎有十多个从来没见过) [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://omiga.org/img/html_elements.jpg" border="0" alt="" /></p>
<p>极度汗颜～···用了五分钟，抓破脑袋也只写出了51个，还有40没想出来。看结果，没想出来的，要么是用的最多的，比如我都没想出来，要么就是我根本不知道的。51个，算算～···[redface]，原来还没有及格呀～···看来我对HTML还是一无所知～</p>
<p><strong><span style="color: #ff3366">标记一下</span></strong></p>
<p><span style="color: #ff3366">我写出来的:</span></p>
<p>A, B, BODY, CAPTION, CENTER, CODE, COL, DD, DIV, DL, DT, EM, FONT, FORM, H1, H2, H3, H4, H5, H6, HR, HTML, I, IMG, INPUT, LABEL, LI, MAP, MENU, META, OBJECT, OL, P, PRE, S, SCRIPT, Select, SPAN, STRONG, STYLE, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, U, UL。</p>
<p><span style="color: #ff3366">这是我没写出来的:</span>(似乎有十多个从来没见过)</p>
<p>ABBR, ACRONYM, ADDRESS, APPLET, AREA, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BR, BUTTON, CITE, COLGROUP, DEL, DFN, DIR, FIELDSET, FRAME, FRAMESET, HEAD, IFRAME, INS, ISINDEX, KBD, LEGEND, LINK, NOFRAMES, NOSCRIPT, OPTGROUP, OPTION, PARAM, Q, SAMP, SMALL, STRIKE, SUB, SUP, TT, VAR。</p>
<p>看看你能写出多少个：http://www.justsayhi.com/bb/html_quiz</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2007. |
<a href="http://omiga.org/blog/archives/49">Permalink</a> |
<a href="http://omiga.org/blog/archives/49#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/49&title=你记得多少HTML标签？">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/49/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>标准化你的表格</title>
		<link>http://omiga.org/blog/archives/35</link>
		<comments>http://omiga.org/blog/archives/35#comments</comments>
		<pubDate>Fri, 23 Nov 2007 21:44:34 +0000</pubDate>
		<dc:creator>omiga</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[web标准]]></category>
		<category><![CDATA[表格]]></category>

		<guid isPermaLink="false">http://omiga.org/?p=35</guid>
		<description><![CDATA[“div+css”极度盛行的今天，很多人已经忘了在HTML里还有table呃～，也有很多人记得只是不愿再想起。单纯为了div而完全抛弃table的做法绝对是不可取的。table没什么错，初衷就是用来显示数据的，错在很多人在那个年代把它用在了布局上，而且用滥了。 在table广泛用于布局的时代，或许很多人眼中table就是，其实不然，即使早在HTML4之前，至少就有了， 标签，HTML4开始引入&#60;thead&#62;,&#60;tbody&#62;,&#60;tfoot&#62;,&#60;col&#62;,&#60;colgroup&#62;标签。微软更是为table完美的数据表现添加了大量的扩展属性。当然了，如果表格单纯用于页面布局，这些标签或者属性基本是一无是处。但是当table回归它本来地位时，这一切变得重要。 &#60;caption&#62;：用于指定可选的表格外加标题，内容通常显示在表格上方或者下方以表明表格的内容，默认居中显示。 &#60;th&#62;：设置表格的标题，浏览器以不同的样式显示标题，一般将标题居中，并以黑体显示。 &#60;thead&#62;：其内容组成表格的标题，它可以包含&#60;tr&#62;,&#60;th&#62; 、 和&#60;td&#62; 。除了便于组织和应用样式外，为这些内容分组的优点在于这样可能在多个页面中重复某些元素，主要体现在打印表格中。 &#60;tfoot&#62;：与&#60;thead&#62;标签类似，其用于在表格中创建一个页脚，亦可在多页上出现。 &#60;tbody&#62;：指定表格正文，并可以出现多次（&#60;thead&#62; 、&#60;tfoot&#62;只可在表格中出现一次）。 熟悉各标签相应功能后，那么构建一个合理的用于呈现数据的表格，就变得很简单了。各尽其用，最大限度地表示出数据间的关系，这才是table真正用途之所在。那么我们可以构建如下完美数据表格。 wondger&#8217;s blog Category ID Category Name Description 1 简单生活 我的简单生活 2 web相关 web应用，业界新闻 3 设计制作 web标准，web设计 查看代码效果 合理的数据表格呈现，远不止构建一个合理的代码结构，更要在数据的视觉表现上做一定的设计。比如标题与正文内容的区分，数据的显示方式，对齐原则等，设计者大可自由发挥。 BTW:啥是标准啊？我相信很多人回答不上来。尽管很多人都自称是css高手，div+css高手，在一个web标准的群里问，没人吭声，都是潜水王，都忘了这个世界除了70%的水，还有30%的空气。我也不知道啥是标准，绝大多数用户也不知道。但是我知道大谈标准化的今天，标准化并不是都是为了用户而标准化，相反更多地是在为计算机标准化。计算机笨，只认识代码，管他什么结构，表现，seo，大部分是为计算机做的。国外用人工搜索引擎工作时，不会去查看源代码。个人对标准化在HTML这部分的理解是，用最合理的标签和结构去呈现最适合的内容，纯属个人观点！意见相左者就当我在YY～··· © omiga for omiga, 2007. &#124; Permalink &#124; 3 comments &#124; Add to del.icio.us Post tags: HTML, table, web标准, 表格]]></description>
			<content:encoded><![CDATA[<p>“div+css”极度盛行的今天，很多人已经忘了在HTML里还有table呃～，也有很多人记得只是不愿再想起。单纯为了div而完全抛弃table的做法绝对是不可取的。table没什么错，初衷就是用来显示数据的，错在很多人在那个年代把它用在了布局上，而且用滥了。</p>
<p>在table广泛用于布局的时代，或许很多人眼中table就是，其实不然，即使早在HTML4之前，至少就有了， 标签，HTML4开始引入&lt;thead&gt;,&lt;tbody&gt;,&lt;tfoot&gt;,&lt;col&gt;,&lt;colgroup&gt;标签。微软更是为table完美的数据表现添加了大量的扩展属性。当然了，如果表格单纯用于页面布局，这些标签或者属性基本是一无是处。但是当table回归它本来地位时，这一切变得重要。</p>
<p>&lt;caption&gt;：用于指定可选的表格外加标题，内容通常显示在表格上方或者下方以表明表格的内容，默认居中显示。</p>
<p>&lt;th&gt;：设置表格的标题，浏览器以不同的样式显示标题，一般将标题居中，并以黑体显示。</p>
<p>&lt;thead&gt;：其内容组成表格的标题，它可以包含&lt;tr&gt;,&lt;th&gt;<br />
、 和&lt;td&gt; 。除了便于组织和应用样式外，为这些内容分组的优点在于这样可能在多个页面中重复某些元素，主要体现在打印表格中。</p>
<p>&lt;tfoot&gt;：与&lt;thead&gt;标签类似，其用于在表格中创建一个页脚，亦可在多页上出现。</p>
<p>&lt;tbody&gt;：指定表格正文，并可以出现多次（&lt;thead&gt; 、&lt;tfoot&gt;只可在表格中出现一次）。      熟悉各标签相应功能后，那么构建一个合理的用于呈现数据的表格，就变得很简单了。各尽其用，最大限度地表示出数据间的关系，这才是table真正用途之所在。那么我们可以构建如下完美数据表格。</p>
<table border="1" cellspacing="2" align="center" bordercolor="#cccccc">
<caption>wondger&#8217;s blog</caption>
<thead>
<tr>
<th>Category ID</th>
<th>Category Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>简单生活</td>
<td>我的简单生活</td>
</tr>
<tr>
<td>2</td>
<td>web相关</td>
<td>web应用，业界新闻</td>
</tr>
<tr>
<td>3</td>
<td>设计制作</td>
<td>web标准，web设计</td>
</tr>
</tbody>
</table>
<p><a href="http://omiga.org/lab/table/table1.html" target="_blank">查看代码效果</a></p>
<p>合理的数据表格呈现，远不止构建一个合理的代码结构，更要在数据的视觉表现上做一定的设计。比如标题与正文内容的区分，数据的显示方式，对齐原则等，设计者大可自由发挥。</p>
<p>BTW:啥是标准啊？我相信很多人回答不上来。尽管很多人都自称是css高手，div+css高手，在一个web标准的群里问，没人吭声，都是潜水王，都忘了这个世界除了70%的水，还有30%的空气。我也不知道啥是标准，绝大多数用户也不知道。但是我知道大谈标准化的今天，标准化并不是都是为了用户而标准化，相反更多地是在为计算机标准化。计算机笨，只认识代码，管他什么结构，表现，seo，大部分是为计算机做的。国外用人工搜索引擎工作时，不会去查看源代码。个人对标准化在HTML这部分的理解是，用最合理的标签和结构去呈现最适合的内容，纯属个人观点！意见相左者就当我在YY～···</p>
<hr />
<p><small>© omiga for <a href="http://omiga.org/blog">omiga</a>, 2007. |
<a href="http://omiga.org/blog/archives/35">Permalink</a> |
<a href="http://omiga.org/blog/archives/35#comments">3 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://omiga.org/blog/archives/35&title=标准化你的表格">del.icio.us</a>
<br/>
Post tags: <a href="http://omiga.org/blog/archives/tag/html" rel="tag">HTML</a>, <a href="http://omiga.org/blog/archives/tag/table" rel="tag">table</a>, <a href="http://omiga.org/blog/archives/tag/web%e6%a0%87%e5%87%86" rel="tag">web标准</a>, <a href="http://omiga.org/blog/archives/tag/%e8%a1%a8%e6%a0%bc" rel="tag">表格</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://omiga.org/blog/archives/35/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

