📄 day1_1.html
字号:
<html><!-- #BeginTemplate "/Templates/design.dwt" --><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Sohu</title>
<style>
.big {font-family: Arial, Helvetica, 宋体; font-size: 13pt; font-weight: bold}
.cur {font-family: 宋体; font-size: 9pt; color: #ff0000}
.chn {font-family: 宋体; font-size: 9pt}
.dir {font-family: 宋体; font-size: 11pt; font-weight: bold}
.sub {font-family: 宋体; font-size: 9pt}
.hdr {font-family: 宋体; font-size: 11pt; font-weight: bold}
.itm {font-family: 宋体; font-size: 9pt}
.eng {font-family: Arial, Helvetica, 宋体; font-size: 9pt}
a.hover {color: red}
</style>
<meta http-equiv="pragma" content="no-cache">
</head>
<body bgcolor="#ffffff" link="#000099" alink="#cc0000" vlink="#000099" topmargin=8>
<center>
<!-- Top banner and channel bar (for all pages) --> <!-- #BeginLibraryItem "/Library/header.lbi" -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr>
<td width="161"> <a href="http://www.sohu.com"><img src="http://www.sohu.com/new_sohu/images/soh1.GIF" width="97" height="45" border="0"></a><a href="http://it.sohu.com/"><img src="../../Library/it1.gif" width="29" height="45" border="0"></a>
</td>
<td width="67"><img src="http://it.sohu.com/foxit.gif" width="100" height="60"></td>
<td height=60 align="right" width=472> <!-- AdSpace Site=SOHU Channel=it --><!-- /AdSpace --></td>
</tr>
<tr>
<td colspan="2"><img src="http://www.sohu.com/new_sohu/images/pixel.gif" height=3></td>
</tr>
<tr bgcolor="#4f519c" >
<td background="http://www.sohu.com/new_sohu/it/images/channel_black_top.gif" height=24 colspan=3 align=center nowrap class=chn><a
href="http://www.sohu.com/" ><font color="#FFFFFF">首页</font></a> <font color="#FFFFFF">-
</font><a
href="http://news.sohu.com/"><font color="#FFFFFF">新闻</font></a><font color="#FFFFFF">
- </font><a
href="http://sports.sohu.com/"><font color="#FFFFFF">体育</font></a><font color="#FFFFFF">
- </font><a
href="http://business.sohu.com/"><font color="#FFFFFF">财经</font></a><font color="#FFFFFF">
- </font><a
href="http://dowjones.sohu.com/"><font color="#FFFFFF">道琼斯</font></a><font color="#FFFFFF">
- </font><a
href="http://auto.sohu.com/"><font color="#FFFFFF">汽车</font></a><font color="#FFFFFF">
- </font><a
href="http://realestate.sohu.com/"><font color="#FFFFFF">房地产</font></a><font color="#FFFFFF">
- </font><a
href="http://it.sohu.com/" class=cur><font color="#FFFF00">IT</font></a><font color="#FFFFFF">
- </font><a
href="http://games.sohu.com/"><font color="#FFFFFF">游戏</font></a><font color="#FFFFFF">
- </font><a
href="http://movie.sohu.com/"><font color="#FFFFFF">影视</font></a><font color="#FFFFFF">
- </font><a
href="http://music.sohu.com/"><font color="#FFFFFF">音乐</font></a><font color="#FFFFFF">
- </font><a
href="http://women.sohu.com"><font color="#FFFFFF">女人</font></a><font color="#FFFFFF">
- </font><a
href="http://travel.sohu.com/"><font color="#FFFFFF">旅游</font></a><font color="#FFFFFF">
- </font><a
href="http://learning.sohu.com/"><font color="#FFFFFF">求知</font></a><font color="#FFFFFF">
- </font><a
href="http://career.sohu.com/"><font color="#FFFFFF">求职</font></a><font color="#FFFFFF">
- </font><a
href="http://freemail.sohu.com/"><font color="#FFFFFF">邮件</font></a></td>
</tr>
</table>
<!-- #EndLibraryItem --><!-- Subchannel bar (contents are different for each channel) -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr bgcolor="#4f519c" >
<td height=24 colspan=3 align=center class=chn><a
href="http://it.sohu.com/it-domestic/index.html"><font color="#FFFFFF">IT新闻</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/webcourse/index.html"><font color="#FFFFFF">实用手册</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/webcourse/webmonkey/index.html"><font color="#FFFF00">网猴教程</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/quote/index.html"><font color="#FFFFFF">硬件行情</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/download/index.html"><font color="#FFFFFF">软件精品廊</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/mobile/index.html"><font color="#FFFFFF">手机时尚</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/netuse/index.html"><font color="#FFFFFF">网络倾情</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/News/news-hot.html"><font color="#FFFFFF">热点追踪</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/free/index.html"><font color="#FFFFFF">免费大全</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/bbs/index.html"><font color="#FFFFFF">IT论坛</font></a></td>
</tr>
<tr>
<td height="10"><img src="http://www.sohu.com/images/pixel.gif" height=5></td>
</tr>
</table>
<!-- Table surrounding page contents -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr> <!-- Headlines (column 1: left column) -->
<td width=132 valign=top> <!-- #BeginLibraryItem "/Library/left.lbi" --> <SCRIPT language=javascript type=text/javascript>
function Visit(form, i) {
var site = form.elements[i].selectedIndex;
if( site >= 1 ) {
top.location = form.elements[i].options[site].value;
}
form.elements[i].selectedIndex = 0;
}
</SCRIPT>
<table bordercolor=#336699 cellpadding=0 cellspacing=1
width="131" border=1>
<tr>
<td colspan=2 align=center height=20 class=hdr>
<div align="center">
<table width="100%" border="1" bordercolordark="#494E94" bordercolorlight="#A6A6FF" height="19">
<tr bgcolor="#494E94" align="center">
<td><font color="#FFFFFF">网猴教程</font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" height="8"><a href="../../1-html/index.html">-HTML</a></td>
</tr>
<tr>
<td colspan="2" height="8">-<font color="#000099"><a href="../../1-dreamweaver/index.html">Dreamweaver</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1firework/lessons/index.html">Fireworks</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-flash/index.html">Flash课程
</a></font></td>
</tr>
<tbody>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-kids/index.html">网页制作</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1dynamic_html/index.html">动态HTML</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#0000CC"><a href="../../1-photoshop/index.html">Photoshop</a></font></td>
</tr>
<tr>
<td colspan="2" height="3">-<font color="#000099"><a href="../../1-javascript/index.html">Javescript</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-java/index.html">Java天地</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#0000CC"><a href="../../1-cool3d/add.html">动画制作</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-design/index.html">网站设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../index.html">XML教程</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1Web101/index.html">WEB入门</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-stylesheets/index.html">样式表教程</a> </td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/index.html">-Backend</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-graphics/index.html">图形与字体</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1multimedia/index.html">多媒体教程</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-os/index.html">-操作系统</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-e_business/index.html">电子商务</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-director/index.html">Director</a> </td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><a href="../../1-download/index.htm"><font color="#FFFFFF">网猴下载</font></a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-download/page1.htm">网页制作</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page2.htm">程序设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page3.htm">网站设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page4.htm">电子商务</a></font>
</td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><a href="../../1-teach/index.htm"><font color="#FFFFFF">实用技巧</font></a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/internet/index.htm">Internet应用</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/photoshop/index.html">Photoshop</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/flash/page1.html">Flash</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/asp/index.html">ASP</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/php/index.html">PHP</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/java/index.htm">Java</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/vb/index.htm">VB</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/c/index.htm">C、C++</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-backend/database/php_mysql/index.html">PHP/MySQL</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/cgi_perl/perl_beginner/index.html">-Perl</a>
</td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/other/index.htm">其它</a> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#666699">
<div align="center"><font color="#FFFFFF">更多教程</font></div>
</td>
</tr>
<tr>
<td colspan="2" height="17"><a href="../../1hdml/index.html">-HDML</a></td>
</tr>
<tr>
<td colspan="2" height="23"><font face="宋体"><a href="../../1-backend/database/course/day1_1.html">-网络数据库</a></font></td>
</tr>
<tr>
<td colspan="2" height="14"><a href="../../1-backend/protocols/ping/index.html"><font face="arial, helvetica, sans-serif">Ping</font></a></td>
</tr>
<tr>
<td colspan="2" height="20"><a href="../../1-backend/cgi_perl/search_engine/index.html">-创建搜索引擎</a></td>
</tr>
<tr>
<td colspan="2" height="16">-<a href="../../1adobe/GoLive/index.html">Adobe GoLive</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/cgi_perl/templates/index.html">模板</a></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><font color="#FFFFFF">合作伙伴</font></td>
</tr>
<tr>
<td colspan="2" align="left">-<a href="http://www.5dmedia.com/" target="_blank">5D精英网</a></td>
</tr>
<tr align="center">
<td colspan="2"> <img src="../../Library/front_monkey.gif" width="59" height="68"></td>
</tr>
</tbody>
</table>
<br><!-- #EndLibraryItem --></td>
<!-- End of headlines (column 1: left column) --> <!-- Gutter between columns 1 and 2 -->
<td width="10" height="794"><img src="http://www.sohu.com/images/pixel.gif" width=10></td>
<!-- Search box and directories (columns 2 and 3: middle columns, combined into one) -->
<td align=center valign=top width="558">
<div align="left"><!-- #BeginEditable "1" -->
<title>XML属性和实体</title>
XML属性和实体<a href="mailto:jay@wired.com">Jay
Greenspan</a>
<p><b>第一页:XML属性和实体</b></p>
<p>我写这篇文章是因为我真诚地关心你对我的看法。我担心的是:如果你读过我写的<a href="../introduce/day1_1.html">XML简介</a>然后准备开始写自己的XML文档。于是你开始寻找一个已经建立的<a href="../introduce/day2_1.html">DTD</a>来表示你的信息。你找到一个,如下所示:</p>
<p> </p>
<pre>
<!ATTLIST fn
%attr.lang;
value CDATA #FIXED "TEXT">
<!ENTITY % attr.img "
img.type CDATA #REQUIRED
img.data ENTITY #REQUIRED">
</pre>
<p>马上你就会认为Jay一定是一个白痴。他没有说关于ATTLIST和ENTITY的任何事 - 不管它们是什么。</p>
<p>那么让我们谈谈这件事,先有一点耐心。</p>
<p>上面这些行可能不好看,但实际上没什么。它们被用在DTD中来定义XML文档中的属性和实体。了解HTML的人会对这很清楚。属性是带有HTML标记符的条目,用来更准确地描述标记符。在经常出现的<img
src="my.gif" height="20" width="20">中,有两个属性:height和width。你在后面会看到,在XML文档使用属性与之很相似。</p>
<p>对实体也没有什么新东西。如果你用过&amp;,你就已经掌握了最基本的东西。一个被&和分号包围起来的字符串用来表示另一个或一套字符。(这里有ISO实体的<a href="iso.html">完整清单</a>。)</p>
<p>当然,XML中属性和实体还有其它功能。这就不可避免地要引入语法,虽然不太多。一旦知道了这些,就会不费劲地使用XML文档。<a href="day1_2.html">>></a></p>
<p><b>XML属性和实体</b><br>
<font color="#FF0000">第一页</font> XML属性和实体<br>
<font color="#FF0000">第二页</font> <a href="day1_2.html">简化菜谱</a><br>
<font color="#FF0000">第三页</font> <a href="day1_3.html">属性类型</a><br>
<font color="#FF0000">第四页</font> <a href="day1_4.html">实体</a></p>
<p> </p>
<p> </p>
<!-- #EndEditable --></div>
</td>
<!-- End of search box and directories (columns 2 and 3: middle columns, combined into one) -->
<!-- Gutter between columns 3 and 4 --> <!-- Other stuff (column 4: right column) -->
<!-- End of other stuff (column 4: right column) --> </tr>
</table>
<!-- End of table surrounding page contents -->
<hr noshade size=1 width=700>
<span class=eng><br>
Copyright (C) 1998-2000 Internet Technologies China. All rights reserved.
</span>
</center>
</body>
<!-- #EndTemplate --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -