<?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>前端思考：专注前端开发，关注用户体验 &#187; Xhtml标签</title>
	<atom:link href="http://www.artcss.com/archives/tag/xhtml%e6%a0%87%e7%ad%be/feed" rel="self" type="application/rss+xml" />
	<link>http://www.artcss.com</link>
	<description>一个像素的距离...</description>
	<lastBuildDate>Sat, 12 Feb 2011 03:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>很有用的Xhtml标签</title>
		<link>http://www.artcss.com/archives/338.html</link>
		<comments>http://www.artcss.com/archives/338.html#comments</comments>
		<pubDate>Sun, 11 Oct 2009 09:16:12 +0000</pubDate>
		<dc:creator>Artcss</dc:creator>
				<category><![CDATA[个人随笔]]></category>
		<category><![CDATA[Xhtml标签]]></category>

		<guid isPermaLink="false">http://www.artskin.cn/blog/?p=338</guid>
		<description><![CDATA[在经典论坛上看到一篇“不常用却很有用的标签 ”的帖子，感觉写得不错，于是就从网上搜集了一下相关资料，来把关于Xhtml标签的相关使用知识整理一下。 首先说一下推荐使用的XHTML标签： [coolcode lang="css" linenum="on"] html &#124; head &#124; title &#124; body &#124; a &#124; abbr &#124; acronym &#124; address &#124; area &#124; base &#124; blockquote &#124; br &#124; button &#124; caption &#124; cite &#124; code &#124; col &#124; colgroup &#124; dd &#124; del &#124; dfn &#124; div &#124; dl &#124; dt &#124; em [...]]]></description>
			<content:encoded><![CDATA[<p>在经典论坛上看到一篇“不常用却很有用的标签 ”的帖子，感觉写得不错，于是就从网上搜集了一下相关资料，来把关于Xhtml标签的相关使用知识整理一下。</p>
<p>首先说一下推荐使用的XHTML标签：</p>
<p>[coolcode lang="css" linenum="on"]<br />
html | head | title | body | a | abbr | acronym | address | area | base | blockquote | br | button | caption | cite | code | col | colgroup | dd | del | dfn | div | dl | dt | em | form | h1, h2, &#8230; h6 | iframe | img | input | ins | kbd | label | legend | li | link | map | meta | noscript | object | ol | optgroup | option | p | param | pre | q | samp | script | select | span | strong | style | sub | sup | table | td | textarea | th | thead | tr | tt | ul | var[/coolcode]</p>
<p>接下来是W3C不推荐用的标签：</p>
<p>禁用：</p>
<p>[coolcode lang="css" linenum="on"]b | big | hr | i | small | sub | sup | tt[/coolcode]</p>
<p>不用：</p>
<p>[coolcode lang="css" linenum="on"]basefont | center | dir | font | isindex | menu | s | strike | u[/coolcode]</p>
<p>不支持及无损块的：</p>
<p>[coolcode lang="css" linenum="on"]tfoot [/coolcode]
</p>
<p>常用的我就不说了，因为大家都知道，这里主要说的是不常用的</p>
<p><b>&lt;base&gt;</b></p>
<h4>定义和用法</h4>
<p>&lt;base&gt; 标签为页面上的所有链接规定默认地址或默认目标。</p>
<p>通常情况下，浏览器会从当前文档的 URL 中提取相应的元素来填写相对 URL 中的空白。</p>
<p> 使用 &lt;base&gt;标签可以改变这一点。浏览器随后将不再使用当前文档的 URL，而使用指定的基本 URL 来解析所有的相对 URL。这其中包括 &lt;a&gt;、&lt;img&gt;、&lt;link&gt;、&lt;form&gt; 标签中的 URL。</p>
<h5>注释：</h5>
<p>&lt;base&gt; 标签必须位于 head 元素内部。</p>
<h5>属性：</h5>
<p>href=”URL”、target=”_blank/_self/_top/_parent/framename”</p>
<h4>应用实例：</h4>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_R5tecl">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;meta name=&quot;author&quot; content=&quot;artskin@163.com,guliqiang&quot; /&gt;
&lt;base target=&quot;_blank&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
&lt;a href=&quot;http://www.artskin.cn&quot; target=&quot;_blank&quot;&gt;设计师导航&lt;/a&gt;这个连接 将在新窗口中加载，因为 target 属性被设置为 &quot;_blank&quot;。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;#&quot;&gt;没写新窗口打开&lt;/a&gt;这个连接也将在新窗口中加载，即使没有 target 属性。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;#&quot;&gt;没写新窗口打开&lt;/a&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_R5tecl');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_R5tecl');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p>未完待续&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artcss.com/archives/338.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

