All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET Remoting体系结构(二)
PHP在网站开发中常用21种功能代码_[PHP教程]
left join、right join、inner join操作演示_[SQL Server教程]
关于xml编码问题在VB,PHP,JAVA下的解决方案_[XML教程]
C#应用:从模拟字符串型的枚举说起_.net资料_编程技术
C#中除去所有在HTML元素中标记_[Asp.Net教程]
配置整合Win+Apache+PHP+MySQL+Tcomcat(或Resin)完全手册_[PHP教程]
AJAX在VS2005中的简单应用_[Asp.Net教程]
.Net业务平台的数值精度陷阱与解决方法_.net资料_编程技术
Asp.net连接数据实例(ACCESS版)_[Asp.Net教程]
Reading number is top 10 pictures
Seductive beauty of crime1
ashlynn brooke
中国文革时期的色情图片2
Sora aoi on twitter1
美洲杯宝贝的雨中风情2
Angie Chiu vijara myth2
青春清纯美女大集合2
Is said to be a Chinese female artist fame explicit pictures before2
联通的3G无线网卡我只用了一天,看看流量......
30 beautiful school beauty6
Download software ranking
Unix video tutorial2
天龙八部十二宫服务端
C++教程第四版
Boxer's Top ten classic battle3
Ashlynn Video1
塘西风月痕
SP3 for SQL2000
C#与.NET技术平台实战演练
网络管理员第三版
dreamweaver8中文版
归海一刀 published in(发表于) 2014/3/30 5:17:39 Edit(编辑)
HTML 初学者指南(1)_[Html教程]

HTML 初学者指南(1)_[Html教程]

HTML 初学者指南(1)_[Html教程]

本文是创建HTML文件的初级读物。HTML 是 WWW(World Wide Web )中使用的超文本标记语言。本指南的目的是介绍如何使用HTML和创建 web 文件。本文中的链接指向一些附加的信息。你还可以到你本地的书店查看一下,那里可能会有很多有价值的关于 Web 和 HTML 的资料。
前言
术语
WWW
World Wide Web
Web
World Wide Web
SGML
Standard Generalized Markup Language--标准通用标记语言,描述标记语言的一个标准
DTD
Document Type Definition--文本类型定义, 这是一个用SGML写成的标记语言的正式说明
HTML
HyperText Markup Language-- 超文本标记语言, 它是一个SGML DTD
HTML 是一套独立于平台的格式定义( 用标记说明 ) , 用来描述World Wide Web 文档中的各个组成部分. HTML 是Tim Berners-Lee 在 CERN (在日内瓦的欧洲粒子物理实验室) 发明的.
本文不包括的内容
本指南假设读者具有以下基础:

知道如何使用 NCSA Mosaic 或者其它的 Web browser
对Web 服务器和客户 browsers 有一般的理解
可以访问 Web 服务器 (或者你只是想用本地方式创建个人使用的HTML 文档)
HTML 版本
本指南参考最新的说明--HTML 2.0-- 加上一些已经在 browsers 中广泛实现的附加特性. 以及正在发展的一些新特性.

HTML 文档
什么是 HTML 文档
HTML 文档是普通文本 ( ASCII) 文件, 它可以用任意编缉器(如UNIX 中的Emacs 或 vi, Macintosh 中的BBEdit, Windows中的Notepad)生成. 你也可以使用字处理软件, 不过要记住存文件时要存成“带回车的纯文本”。

HTML 编辑器
现在有一些 WYSIWYG 编辑器 (如., 可用在多种平台的 HotMetal, 或者可用在 Macintosh 机的 Adobe PageMill ). 在你学了一些 HTML 标记的基本知识之后,你可能希望使用它们. 你会发现掌握足够的 HTML 编码知识对于判断一个 WYSIWYG 编辑器是否适用是很有益处的

如果你还没有选定使用哪种软件, 可以参考本站软件下载 HTML 编辑器的在线例表 (按应用平台分类) ,帮助你寻找应用软件.

把文件存放到服务器上
如果你在学校或者单位可以访问 Web 服务器, 和你的 WEB 管理员webmaster (维护服务器的人) 联系,看看如何把你的文件存放到 Web 上. 否则,如果在学校或单位不能访问, 可以看看你的社区是否有 免费网络FreeNet, 一种提供免费 Internet 访问服务的基于社区的网络. 如果也没有免费网络, 你可以当地的 Internet 服务提供者联系,他们可以把你的文档存放到服务器上,不过要收取费用. (你可以在当地的报纸上找到广告with your Chamber of Commerce for the names of companies.)

标记说明
一个元素 element 是一个文档结构的基本组成部分. 元素的例子有头 heads, 表格tables, 段落 paragraphs, 列表 lists 等. 你可以这样理解: 你用 HTML 标记为浏览器标出文件的各个元素 . 元素中可以包含普通文本,其他元素,或二者都有.

在 HTML 文档中使用tags表示各种元素. HTML 标记由一个左尖括号 (<), 一个标记名, 和一个右尖括号 (>) 组成. 标记通常成对出现 (如,

) 以指出标记作用的范围. 结束标记和起始标记相似,只是在括号中的标记名中以斜杠 (/) 领头. HTML 标记在下文中列出.

有些元素可能含有一个属性 attribute, 它是包含在起始标记中的附加信息说明. 例如, 通过在图象文件的 HTML 代码中包含适当的属性,你可以指明一幅图象的位置 (顶端, 中间, 或底部) . 具有可选属性的标记 如下.

注意: HTML 不区分大小写. 等价于 <TITLE> 或 <TiTlE>. 有几个例外的情况列在下文中的转义序列中. <BR><BR>并非所有的 World Wide Web 浏览器都支持所有的标记. 如果一个浏览器不支持某个标记, 它通常只是忽略之. <BR><BR>最小的 HTML 文档<BR>每个 HTML 文档应该包含一些标准 HTML 标记. 每个文档都包含头 head 和正文 body text 两部分. 头中含有标题 title, 正文中含有实际构成段落,列表和其他元素的文本. 浏览器需要具体的信息是因为它们都是根据 HTML 和 SGML 说明编程的. <BR><BR>下面的源文档举例说明必须的元素: <BR><BR><html><BR><head><BR><TITLE>A Simple HTML Example


HTML is Easy To Learn


Welcome to the world of HTML.
This is the first paragraph. While short it is
still a paragraph!


And this is the second paragraph.





必须的元素有 , , , 和 <body> 标记 (和它们相应的结束标记). 由于在每个文件中你都要包括这些标记, 你可以创建一个含有这些标记的模板文件. ( 有些浏览器会自动正确地规格化你的 HTML 文件,哪怕你没有包含这些标记. 但是有些浏览器不会这样! 因此你要确保包含这些标记.) <br/> <br/> <br/> <br/> </div> </td> </tr> <tr> <td colspan='3' style='width:800px; height:auto;'> <iframe id='iframepage' name='iframepage' src='../../ForJavaScript1.aspx?newsId=15139&pageIndex=1' scrolling=no frameborder='0' width='100%' onLoad='iFrameHeight()' > </iframe> </td> </tr> </table> </center> </div> </td> <td style='width:200px; height:auto; vertical-align:top;'> <div> <table> <tr> <td style='width:200px; height:auto;'> <div><script language="JavaScript" src="../../js/guanggaointexthtmlright1.js" type="text/javascript"></script></div> </td> </tr> <tr> <td style='width:200px; height:auto;'> <div><script language="JavaScript" src="../../js/guanggaointexthtmlright2.js" type="text/javascript"></script></div> </td> </tr> </table> </div> </td> </tr> </table> <hr style="width:1200px; height:1px;" /> <table> <tr> <td align="left"> <div><script language="JavaScript" src="../../js/guanggaoinhtmlend.js" type="text/javascript"></script></div> </td> </tr> <tr> <td align="left"> <div><script language="JavaScript" src="../../js/guanggaoinhtmlend2.js" type="text/javascript"></script></div> </td> </tr> </table> </center> </div> </form> </center> <hr style="width:1200px; height:1px;" /> <center> <a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400'); return false;"><img alt="添加到del.icio.us" src='../ico_share/ico_delicious.gif' border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange ().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=2008&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏的网页将被永久地保存到爱问ViVi收藏夹http://vivi.sina.com.cn"><img alt="添加到新浪ViVi" src='../ico_share/ico_vivi.gif' border="0" /></a> <a href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0" style="color:#000000;text-decoration:none;font-size:12px;font-weight:normal"><img alt="添加到百度搜藏" src='../ico_share/ico_baidu.gif' border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange ().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'_blank','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));" title="收藏到POCO网摘http://share.poco.cn"><img alt="添加到POCO网摘" src='../ico_share/ico_poco.gif' border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();" title="功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐"><img alt="添加到天天网摘365Key" src='../ico_share/ico_365key.gif' border="0" /></a> <a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img alt="添加到和讯网摘" src='../ico_share/ico_hexun.gif' border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','_blank','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"title="推荐到天极网摘 http://hot.my.yesky.com [鼠标划选本文摘要,然后点击本图片]"><img alt="添加到天极网摘" src='../ico_share/ico_yesky.gif' border="0" /></a> <a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.hemidemi.com/user_bookmark/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));"><img alt="添加到黑米书签" src='../ico_share/ico_hemidemi.gif' border="0" /></a> <a href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img alt="添加到QQ书签" src='../ico_share/ico_qq.gif' border="0" /></a> <a href="#" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');"><img alt="添加到雅虎收藏" src='../ico_share/ico_yahoo.gif' border="0" /></a> <a title="推荐到diglog" href="javascript://" onclick="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.diglog.com/submit.aspx?title='+escape(d.title)+'&url='+escape(d.location.href)+'&description='+escape(t),'keyit','resizable,location,menubar,toolbar,scrollbars,status'));keyit.focus();"><img alt="添加到奇客发现" src='../ico_share/ico_diglog.gif' border="0" /></a> <a href="#" onclick="var s=document.createElement('script');s.type='text/javascript';s.src='http://www.diigo.com/javascripts/webtoolbar/diigolet_b_h_b.js';document.body.appendChild(s);"><img alt="diigo it" src='../ico_share/ico_diigo.gif' border="0" /></a> <a href="javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'?t='+e(d.title)+'?d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'?s=bl';if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,width=600,height=400')){l.href=f+'.new'+p;}void(0)"><img alt="添加到饭否" src='../ico_share/ico_fanfou.gif' border="0" /></a> <a target=_blank href="http://www.feedou.com/addchannelservlet?commandkey=takersslog&url=http://digimarketing.cn/modules/article/xml.php?rss"><img alt="添加到飞豆订阅" src='../ico_share/ico_feedou.gif' border="0" /></a> <a target=_blank href="http://www.zhuaxia.com/add_channel.php?sourceid=102&url=http%3A%2F%2Fdigimarketing.cn"><img alt="添加到抓虾收藏" src='../ico_share/ico_zhuaxia.gif' border="0" /></a> <a target="_blank" href="http://www.xianguo.com/subscribe.php?url=digimarketing.cn"><img alt="添加到鲜果订阅" src='../ico_share/ico_xianguo.gif' border="0" /></a> <a href="javascript:;" onclick="window.open('http://digg.com/submit?phase=2&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title)); return false;"><img alt="digg it" src='../ico_share/ico_digg.gif' border="0" /></a> <a target=_blank href="http://funp.com/push/submit/add.php?&via=tools" title="貼到funP"><img alt="貼到funP" src='../ico_share/ico_funp.gif' border="0" /></a> <a target="_blank" href="http://reader.yodao.com/b.do?url=digimarketing.cn"><img alt="添加到有道阅读" src='../ico_share/ico_yodao.gif' border="0" /></a> <a href="javascript:;" onclick="window.open('http://favorites.live.com/quickadd.aspx?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title)); return false;"><img alt="Live Favorites" src='../ico_share/ico_windows.gif' border="0" /></a> <a href="javascript:;" onclick="window.open('http://www.newsvine.com/_tools/seed&save?popoff=0&u=' + encodeURIComponent(location.href) + '&h=' + encodeURIComponent(document.title)); return false;"><img alt="添加到Newsvine" src='../ico_share/ico_newsvine.gif' border="0" /></a> <a onclick="javascript:window.print();" href="javascript:;"><img src="../ico_share/ico_print.gif" alt="打印本页" border="0" /></a> <a onclick='javascript:window.location="mailto:?subject=[ Enter your own subject line ]& body=" + "Check out this link: " + window.location;' href="javascript:;"><img alt="用Email发送本页" src='../ico_share/ico_mail.gif' border="0" /></a> <script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436,scrollbars=1, resizable=1');return false;}</script> <a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link"><img alt="在Facebook上分享" src='../ico_share/ico_fb.jpg' border="0" /></a> </center> <hr style="width:1200px; height:1px;" /> <center > <!--网站底部--> <div style=" width:1200px; height:100px; background-color:#FFFFFF;"> <hr style=" width:1200px; height:1px;"/> <table> <tr style=" height:50px; width:1200px;"> <td align="center" style="height:50px;"> <a href="../../disclaimer.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Disclaimer</a> </td> <td align="center" style="height:50px;"> <a href="../../privacy policy.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Privacy Policy</a> </td> <td align="center" style="height:50px;"> <a href="../../AboutUs.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">About us</a> </td> <td align="center" style="height:50px;"> <a href="../../SiteMap.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Site Map</a> </td> <td align="center" style="height:50px;"> <!--百度网站统计--> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fcd1d276abd98aad311a7e9ab1f772b56' type='text/javascript'%3E%3C/script%3E")); </script> </td> <td align="center" style="height:50px;"> </td> <td align="center" style="height:50px;"> <a href="http://webscan.360.cn"><img border="0" src="http://webscan.360.cn/status/pai/hash/494b6dad04e216e4d1f270ad7bfe37f4"/></a> </td> </tr> </table> <hr style=" width:1200px; height:1px;"/> If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长) <hr style=" width:1200px; height:1px;"/> <table> <tr> <td><img src="../../images/mmqrcode1435163607101.png" alt=""/></td> <td></td> <td><img src="../../images/mmqrcode1435163324094.png" alt=""/></td> </tr> <tr> <td align="right"> Copyright ©2011-</td> <td align="left"><div id="yearTime"></div> </td> <td align="left"> uuhomepage.com, Inc. All rights reserved. </td> <td> <div><script language="JavaScript" src="../../js/guanggao6.js" type="text/javascript"></script></div> </td> </tr> </table> </div> </center> </body> </html>