⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example7.html

📁 XML tutorial
💻 HTML
字号:
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><link rel="stylesheet" type="text/css" href="../CSS/tutorial.css"/><title>XML Tutorial</title><link rel="previous" href="example6.html"/><link rel="next" href="example8.html"/><link rel="contents" href="../General/contents.html#7"/></head><body><table width="100%"><tr><td><span class="mediumText"><b>&gt;&gt; English &lt;&lt;</b> | <a class="naviBlack" target="_top" href="../Output_cze/example7.html">česky</a> | <a class="naviBlack" target="_top" href="../Output_spa/example7.html">Español</a> | <a class="naviBlack" target="_top" href="../Output_por/example7.html">Português</a> | <a class="naviBlack" target="_top" href="../Output_tur/example7.html">Türkçe</a> | <a class="naviBlack" target="_top" href="../Output_dut/example7.html">Nederlands</a> | <a class="naviBlack" target="_top" href="../Output_rus/example7.html">По-русски</a> | <a class="naviBlack" target="_top" href="../Output_ger/example7.html">Deutsch</a> | <a class="naviBlack" target="_top" href="../Output_fre/example7.html">Français</a> | <a class="naviBlack" target="_top" href="../Output_ita/example7.html">Italiano</a> | <a class="naviBlack" target="_top" href="../Output_chi/example7.html">中文</a></span></td><td style="text-align:right"><span class="mediumText"><a class="naviBlack" target="_top" href="http://www.zvon.org">ZVON</a>		&gt;		<a class="naviBlack" target="_top" href="http://www.zvon.org/index.php?nav_id=tutorials">Tutorials</a>		&gt;		<b>XML Tutorial</b></span></td></tr></table><table class="bar" width="750px" border="0" cellpadding="0" cellspacing="0"><tr><td class="naviBlue"><a class="naviWhite" target="_top" href="../General/book.html">Intro</a> 	/	  <a class="naviWhite" target="_top" href="http://zvon.org/search.php">Search</a> 	/	<a class="naviWhite" target="_top" href="http://www.zvon.org"> ZVON </a></td></tr></table><table class="hangingMenu" border="0" cellpadding="1" cellspacing="0" width="100%"><tr><td><b>&gt;&gt; Example 7 &lt;&lt;</b>	      |	      <a class="naviBlack" href="example6.html">Prev</a>	      |	      <a class="naviBlack" href="example8.html">Next</a>	      |	      <a class="naviBlack" href="../General/contents.html#7">Contents</a></td></tr></table><br/><h3>Description</h3><hr/><div class="description">An element can have none, one or several attributes. Permitted characters are the same as for element names. The name of attribute is separated from its value by =. The attribute value must be given inside apostrophes '...' or double-quotes  "..." . If an apostrophe or double-quote is used in the attribute value the opposite delimiter must be used.  </div><br/><h3>Well-formed documents</h3><hr/><br/><div class="docDescription">Document with well formed attributes:          </div><table width="75%" cellpadding="15"><tr><td class="doc"><br></br>&lt;elements-with-attributes&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;el&nbsp;_ok&nbsp;=&nbsp;"yes"&nbsp;/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;one&nbsp;attr&nbsp;=&nbsp;"a&nbsp;value"/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;several&nbsp;first="1"&nbsp;second&nbsp;=&nbsp;'2'&nbsp;third=&nbsp;"333"/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;apos_quote&nbsp;case1="John's"&nbsp;case2='He&nbsp;said:&nbsp;"Hello,&nbsp;world!"&nbsp;&nbsp;'/&gt;<br></br>&lt;/elements-with-attributes&gt;<br></br></td></tr></table><br/><h3>Documents with errors<sup><a href="#">Top</a></sup></h3><hr/><br/><div class="docDescription">Document with erroneous attributes:          </div><table width="75%" cellpadding="15"><tr><td class="doc"><br></br>&lt;errors&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wrong_char&nbsp;a<span class="error">*</span>b&nbsp;=&nbsp;"23432"/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mismatched_separator&nbsp;value&nbsp;=&nbsp;<span class="error">"</span>12<span class="error">'</span>/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wrong_separator_type&nbsp;&nbsp;value="aa<span class="error">"</span>aa"/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wrong_separator_type&nbsp;&nbsp;value='bb<span class="error">'</span>bb'/&gt;<br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;wrong_start&nbsp;<span class="error">XML</span>-ID&nbsp;=&nbsp;"xml234"/&gt;<br></br>&lt;/errors&gt;<br></br></td></tr></table><br/></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -