html网页源代码是什么 如何查看网页源代码经验篇

html网页源代码是什么 如何查看网页源代码经验篇,第1张

第一种:打开一个网页后点击鼠标的 右键就会有"查看源文件", *** 作 鼠标右键--->查看源文件 即可d出一个记事本,而记事本内容就是此网页的html代码。

可能会碰到一些网页鼠标右键无反应或提出提示框,那是因为做网页的加入了JS代码来禁止用户查看源文件代码或复制网页内容,但是这种方法也没用,只有你稍微懂得以下第二种方法即可查看此网页的源代码源文件。

第二种:通过浏览器状态栏或工具栏中的点击 “查看”然后就用一项“查看源代码”,点击查看源代码即可查看此网页的源代码源文件。

在微软IE下 查看--->源文件 即可查看此网页代码在傲游浏览器下截图:

查看别人网页的源代码可以为我们制作网页时候有帮助,以后将介绍查看源代码更多方法及怎么运用到别人的源代码文件。

三、其它浏览器具体查看html网页源代码方法步骤   -   TOP

首先请打开您的网络浏览器,然后访问任何一个网页。

完成上述步骤后,您可以通过以下针对不同网络浏览器的简单步骤快速查看html网页源代码。

1)、Firefox浏览器,请按以下步骤 *** 作:

点击火狐firefox浏览器上方“工具(T)”菜单。

在下拉菜单中点击“Web 开发者”。

然后在下拉菜单中选择点击“页面源代码”,即可查看网页源代码。

2)、谷歌浏览器,请按以下步骤 *** 作:

点击广告浏览器,右上角“三横”控制图标

在下拉菜单点击“工具”

然后再点击“查看源代码”。

或直接谷歌浏览器中使用快捷键“Ctrl+U”即可查看被访网页源代码。

对于这些的话,新手朋友可以参考附件里面的知识学习下

HTML是一种规范,一种标准,它通过标记符号来标记要显示的网页中的各个部分。网页文件本身是一种文本文件,通过在文本文件中添加标记符,可以告诉浏览器如何显示其中的内容(如:文字如何处理,画面如何安排,图片如何显示等)。浏览器按顺序阅读网页文件,然后根据标记符解释和显示其标记的内容,对书写出错的标记将不指出其错误,且不停止其解释执行过程,编制者只能通过显示效果来分析出错原因和出错部位。但需要注意的是,对于不同的浏览器,对同一标记符可能会有不完全相同的解释,因而可能会有不同的显示效果。

查看HTML代码:在网页空白区点击鼠标右键----》查看源代码,就可以看到。

这是首页的源代码:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312">

<title>首页 - 源码世界(Code123.Net) - asp源码,cgi源码,php源码,jsp源码,.net源码,网站素材,网页素材,网页模板,商业模板,免费模板,常用软件,注册版,破解版,免费LOGO,娱乐,flash动画,网络编程,网络学院,站长资源,网站联盟,精品网址,图片,壁纸,桌面,书籍教程,服务器架设,服务器软件,电子图书,LOGO模板,精品字体,字体下载,软件下载,源码下载,源码 </title>

<meta name=keywords content="源码世界 asp源码,cgi源码,php源码,jsp源码,.net源码,网站素材,网页素材,网页模板,商业模板,免费模板,常用软件,注册版,破解版,免费LOGO,娱乐,flash动画,网络编程,网络学院,站长资源,网站联盟,精品网址,图片,壁纸,桌面,书籍教程,服务器架设,服务器软件,电子图书,LOGO模板,精品字体,字体下载,软件下载,源码下载,源码">

<meta name="description" content="首页 ,源码世界">

<LINK href="/skin/default/style.css" type=text/css rel=stylesheet>

<meta name="MSSmartTagsPreventParsing" content="TRUE">

<meta http-equiv="MSThemeCompatible" content="Yes">

<meta http-equiv="html" content="no-cache">

</head>

<script src="/inc/menu.js" type="text/javascript"></script>

<body>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr>

<td height="5"></td>

</tr>

<tr>

<td height="25" align="right" class="tablebody"><a href="/" class=navmenu>首 页</a> ┆ <a href="/Article/" title="站长学院" class=navmenu>站长学院</a>┆ <a href="/soft/" title="源码下载" class=navmenu>源码下载</a>┆ <a href="/GuestBook/" title="客户留言" class=navmenu>客户留言</a>┆ <a name="StranLink" style="color:red">繁体中文</a></td>

</tr>

<tr>

<td height="1"></td>

</tr>

<tr>

<td height="74" background="/skin/default/top1.gif"><table width="100%" border=0 align=center cellpadding=0 cellspacing=0>

<tr>

<td width="180" align="center"><img src="/skin/default/logo.gif" width="180" height="60"></td>

<td width="500" align="center"><script language=javascript src=/adfile/banner.js></script></td>

<td width="90" height="70" align="center" nowrap><img src="/skin/default/top_home.gif" width="13" height="12" border=0><a onclick="this.style.behavior='url(#default#homepage)'this.sethomepage('http://www.code123.net')return false" href="http://www.code123.net" title="将本站设为你的首页">设为首页</a><br>

<img src="/skin/default/top_gift.gif" width="13" height="12" border=0><a href="javascript:window.external.AddFavorite(location.href,document.title)" title="将本站加入到你的收藏夹">加入收藏</a><br>

<img src="/skin/default/top_mail.gif" width="13" height="12" border=0><a href="mailto:[email protected]">联系我们</a></td>

</tr>

</table></td>

</tr>

<tr>

<td height="1"></td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr height="22">

<td align="center" nowrap class="navbarbg"> 源码:</td>

<td width="96%" class="navbarbg"><a href='/soft/asp/' class=navbar title='ASP 源码'>ASP 源码</a>| <a href='/soft/php/' class=navbar title='PHP 源码'>PHP 源码</a>| <a href='/soft/net/' class=navbar title='.NET源码'>.NET源码</a>| <a href='/soft/cgi/' class=navbar title='CGI 源码'>CGI 源码</a>| <a href='/soft/jsp/' class=navbar title='JSP 源码'>JSP 源码</a>| <a href='/soft/fla/' class=navbar title='Fla 源码'>Fla 源码</a>| <a href='/soft/server/' class=navbar title='服务器类'>服务器类</a>| <a href='/soft/book/' class=navbar title='书籍教程'>书籍教程</a>| <a href='/soft/mb/' class=navbar title='网页模板'>网页模板</a>| <a href='/soft/material/' class=navbar title='网站素材'>网站素材</a>| <a href='/soft/font/' class=navbar title='字体下载'>字体下载</a></td>

</tr>

<tr height="22">

<td align="center" nowrap class="navbarbg"> 学院:</td>

<td class="navbarbg"><a href='/Article/program/' class=navbar title='网络编程'>网络编程</a>| <a href='/Article/website/' class=navbar title='网页设计'>网页设计</a>| <a href='/Article/photo/' class=navbar title='图形图象'>图形图象</a>| <a href='/Article/database/' class=navbar title='数 据 库'>数 据 库</a>| <a href='/Article/server/' class=navbar title='服 务 器'>服 务 器</a>| <a href='/Article/Media/' class=navbar title='网络媒体'>网络媒体</a>| <a href='/Article/Security/' class=navbar title='网络安全'>网络安全</a>| <a href='/Article/Club/' class=navbar title='站长CLUB'>站长CLUB</a></td>

</tr>

<tr>

<td height="1" colspan="3" bgcolor="#DFDFDF"></td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr>

<td height="2"></td>

</tr>

<tr>

<td bgcolor="#EFEFEF"><iframe src="/login.asp" border=0 width=100% height=26 frameborder=0 scrolling=no></iframe></td>

</tr>

<tr>

<td height="2"></td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr>

<td><script language=javascript src=/adfile/top.js></script></td>

</tr>

<tr>

<td height="5"></td>

</tr>

<tr>

<td height="8" class="linebar"></td>

</tr>

<tr>

<td height="5"></td>

</tr>

</table><!--#index 首页当前位置-->

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr>

<td height="22" bgcolor="#EFEFEF"><table width="100%" border="0" cellspacing="2" cellpadding="0">

<tr>

<td width="4%" align="center"><img src="/skin/default/class_ar.gif" width="13" height="13"></td>

<td width="74%">您当前的位置:<a href="/">源码世界</a>->首页</td>

<td width="22%" align="center"><img src="/skin/default/h_arrow.gif" width="11" height="11" align="absmiddle"><a href="/user/logout.asp">退出登录</a><img src="/skin/default/h_arrow.gif" width="11" height="11" align="absmiddle"><a href="/user/">用户管理</a></td>

</tr>

</table></td>

</tr>

<tr>

<td height="1" bgcolor="D9D9D9"></td>

</tr>

<tr>

<td height="5"></td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr valign="top">

<td width="188" class="tableleft">

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="titleback2">站内统计</td>

</tr>

<tr>

<td height="100" valign="top">

· 共有文章数量: <font color=red><strong>10712</strong></font>篇<br>

· 今日更新文章: <font color=red><strong>0</strong></font>篇<br>

· 文章总阅览数: <font color=red><strong>8440</strong></font>次<br>

· 共有软件数量: <font color=red><strong>2525</strong></font>个<br>

· 今日更新软件: <font color=red><strong>21</strong></font>个<br>

· 软件总下载数: <font color=red><strong>22272</strong></font>次<br>

· 软件总的容量: <font color=red><strong>7.579</strong></font>G<br>

· 发表留言总数: <font color=red><strong>1</strong></font><br>

· 今日发表留言: <font color=red><strong>0</strong></font><br>

· 注册会员总数: <font color=red><strong>125</strong></font><br>

· 当前在线人数: <strong style="color:red"><script src="count.asp?id=1" type="text/javascript"></script></td>

</tr>

</table> </td>

<td width="588" align="right" class="tableright">

<table width="575" border="0" cellspacing="0" cellpadding="0" class="showbody3">

<tr height="25">

<td width="35" align="center" bgcolor="#EFEFEF"><img src="/skin/default/announce.gif" width="20" height="16"></td>

<td width="540" bgcolor="#EFEFEF"><marquee scrollAmount=3>· <a href="/Announce.Asp?AnnounceID=1" title="如果您遇到不可下载的源码请报错给我们" target="_blank">如果您遇到不可下载的源...</a>  <font color='#808080'>2006-03-31</font>

</marquee></td>

</tr>

</table>

<table width="575" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="5" colspan="2"></td>

</tr>

<tr>

<td width="406" height="25" class="titleback3"> 最近推荐作品</td>

</tr>

<td valign="top" class="showbody1"><table width="100%" border="0" cellpadding="1" cellspacing="3">

<tr>

<td align="center" class="imagelist"><div class="divpic"><a href='/soft/book/php/2487.html' title='PHP&MORE' target="_blank"><img src="/soft/UploadPic/2006-4/2006441715285619.jpg" width=120 height=100 border=0></a></div>

<div style="line-height: 22px"><a href='/soft/book/php/2487.html' title='PHP&MORE' target="_blank">PHP&MORE...</a></div></td>

<td align="center" class="imagelist"><div class="divpic"><a href='/soft/book/php/2486.html' title='PHP 5 揭密(CHM)' target="_blank"><img src="/soft/UploadPic/2006-4/2006441704043785.jpg" width=120 height=100 border=0></a></div>

<div style="line-height: 22px"><a href='/soft/book/php/2486.html' title='PHP 5 揭密(CHM)' target="_blank">PHP 5 揭...</a></div></td>

<td align="center" class="imagelist"><div class="divpic"><a href='/soft/material/pic/2355.html' title='2300多个经典新图标' target="_blank"><img src="/soft/UploadPic/2006-3/200633017585771686.gif" width=120 height=100 border=0></a></div>

<div style="line-height: 22px"><a href='/soft/material/pic/2355.html' title='2300多个经典新图标' target="_blank">2300多个...</a></div></td>

<td align="center" class="imagelist"><div class="divpic"><a href='/soft/asp/ofter/2346.html' title='科汛网站管理系统 2006 SP1 全功能免费正式版' target="_blank"><img src="/soft/UploadPic/2006-3/20063301811264057.gif" width=120 height=100 border=0></a></div>

<div style="line-height: 22px"><a href='/soft/asp/ofter/2346.html' title='科汛网站管理系统 2006 SP1 全功能免费正式版' target="_blank">科汛网站...</a></div></td>

</tr>

</table>

</td>

</tr>

</table>

<table width="575" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="5" colspan="2"></td>

</tr>

<tr>

<td width="130" height="30" bgcolor="#EFEFEF"><img src="/skin/default/search.gif" width="120" height="26"></td>

<td width="445" bgcolor="#EFEFEF"><!--搜索表单--><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<form onSubmit="window.location=this.field.options[this.field.selectedIndex].value+this.keyword.valuereturn false">

<td bgcolor="#EFEFEF" height="25" nowrap>

<input name="keyword" size="30" value='关键字' maxlength='50' onFocus='this.select()'>

<select name="field">

<option value="soft/search.asp?act=topic&keyword=">软件下载</option>

<option value="article/search.asp?act=topic&keyword=">新闻资讯</option>

<option value="flash/search.asp?act=topic&keyword=">FLASH搜索</option>

<option value="article/search.asp?act=isWeb&keyword=">网页搜索</option>

</select>

<input name="Submit" src="skin/default/d_search.gif" type="image" value="Submit" width="60" height="20" align="absmiddle" border="0"></td>

</form>

</tr>

</table></td>

</tr>

<tr>

<td height="5" colspan="2"></td>

</tr>

</table>

</td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr>

<td align="center"><script language="javascript" src="adfile/indexmid.js"></script></td>

</tr>

</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">

<tr valign="top">

<td width="188" height="300" class="tableleft"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="titleback1">热门下载</td>

</tr>

<tr>

<td height="100" valign="top"><table width="100%" border=0 cellpadding=2 cellspacing=0><tr>

<td class="showlist1">· <a href='/soft/asp/fun/932.html' target="_blank" title='源码名称:亚阳影视 v1.3 发布时间:2006-2-22 2:18:57 下载次数:4208' class=showlist>亚阳影视 v1.3</a></td>

<td align=right class="showlist1"></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/mb/flash/134.html' target="_blank" title='源码名称:6套FLASH+HTML网页模版 发布时间:2006-2-16 17:08:22 下载次数:283' class=showlist>6套FLASH+HTML网页模版...</a></td>

<td align=right class="showlist2"></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/font/cn/1411.html' target="_blank" title='源码名称:创意最新25款中文字体 发布时间:2006-2-24 17:46:31 下载次数:261' class=showlist>创意最新25款中文字体...</a></td>

<td align=right class="showlist1"></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/material/icon/1712.html' target="_blank" title='源码名称:1351个晶莹剔透的水晶按钮图标 发布时间:2006-3-7 12:49:37 下载次数:247' class=showlist>1351个晶莹剔透的水晶...</a></td>

<td align=right class="showlist2"></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/mb/web/131.html' target="_blank" title='源码名称:漂亮清新的全站模板 发布时间:2006-2-16 16:52:58 下载次数:203' class=showlist>漂亮清新的全站模板</a></td>

<td align=right class="showlist1"></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/font/cn/78.html' target="_blank" title='源码名称:方正黄草简体 发布时间:2006-2-16 13:38:30 下载次数:168' class=showlist>方正黄草简体</a></td>

<td align=right class="showlist2"></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/asp/news/2159.html' target="_blank" title='源码名称:凡尘文章管理系统 发布时间:2006-3-24 7:41:35 下载次数:161' class=showlist>凡尘文章管理系统</a></td>

<td align=right class="showlist1"></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/mb/korea/1661.html' target="_blank" title='源码名称:一个不错的韩国网站模版 发布时间:2006-3-4 19:16:45 下载次数:139' class=showlist>一个不错的韩国网站模...</a></td>

<td align=right class="showlist2"></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/mb/common/1662.html' target="_blank" title='源码名称:经典2006绿色清爽荷叶个人主页 V2.0 发布时间:2006-3-4 19:25:17 下载次数:136' class=showlist>经典2006绿色清爽荷叶...</a></td>

<td align=right class="showlist1"></td>

</tr></table></td>

</tr>

<tr>

<td height="3" bgcolor="#FFFFFF"></td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="titleback2">投票调查</td>

</tr>

<tr>

<td height="100" valign="top"><iframe src="vote/vote.htm" border="0" width="100%" height="220" frameborder="0" scrolling="no"></iframe></td>

</tr>

</table></td>

<td width="588" align="right" class="tableright"><table width="575" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="286" class="showtitle3"> 源码更新</td>

<td width="3" rowspan="2"></td>

<td width="286" class="showtitle3"> 文章更新</td>

</tr>

<tr>

<td height="150" valign="top" class="showbody1"><table width="100%" border=0 cellpadding=2 cellspacing=0><tr>

<td class="showlist1">· <a href='/soft/asp/business/2551.html' title='源码名称:凤台中介 发布时间:2006-4-7 15:12:34 下载次数:0' class=showlist>凤台中介</a></td>

<td align=right class="showlist1"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/asp/web/2550.html' title='源码名称:蝗虫乐队中文网 v1.0 发布时间:2006-4-7 15:11:23 下载次数:0' class=showlist>蝗虫乐队中文网 v1.0</a></td>

<td align=right class="showlist2"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/asp/web/2549.html' title='源码名称:蝴蝶养猫个人主页完美版 发布时间:2006-4-7 15:10:09 下载次数:0' class=showlist>蝴蝶养猫个人主页完美版</a></td>

<td align=right class="showlist1"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/asp/web/2548.html' title='源码名称:666传奇私服发布系统绿色版 v2.9绿色美化版 发布时间:2006-4-7 14:41:16 下载次数:0' class=showlist>666传奇私服发布系统绿色版...</a></td>

<td align=right class="showlist2"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/asp/fun/2547.html' title='源码名称:1624部视频(电影)生成本地HTML 1.0 发布时间:2006-4-7 14:40:11 下载次数:0' class=showlist>1624部视频(电影)生成本地...</a></td>

<td align=right class="showlist1"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/asp/web/2546.html' title='源码名称:Asicn在线-网址导航 V1.0 发布时间:2006-4-7 14:39:01 下载次数:0' class=showlist>Asicn在线-网址导航 V1.0</a></td>

<td align=right class="showlist2"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/asp/web/2545.html' title='源码名称:QQ娱乐资源网音乐插件版 发布时间:2006-4-7 14:34:51 下载次数:0' class=showlist>QQ娱乐资源网音乐插件版</a></td>

<td align=right class="showlist1"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist2">· <a href='/soft/asp/web/2544.html' title='源码名称:江中岛星座情缘 4.1 发布时间:2006-4-7 14:33:34 下载次数:0' class=showlist>江中岛星座情缘 4.1</a></td>

<td align=right class="showlist2"><font color='#FF0066'>04-07</font></td>

</tr><tr>

<td class="showlist1">· <a href='/soft/asp/ofter/2543.html' title='源码名称:江中岛(扬中)友情连接自助系统(美化版本) 4.1 发布时间:2006-4-7 14:32:21 下载次数:0' class=showlist>江中岛(扬中)友情连接自...</a></td>

<td align=right class="showlist1"><font color='#FF0066'>04-07</font></td>

</tr></table></td>

<td valign="top" class="showbody2"><table width="100%" border=0 cellpadding=2 cellspacing=0><tr>

<td class="showlist1">· <font color='#FF0066'>[组图]</font><a href='/Article/photo/photoshop/10713.html' target="_blank" title='文章标题:Photoshop调整色彩饱和度欠佳的图片 发布时间:2006-4-6 10:25:22 阅览次数:3' class=showlist>Photoshop调整色彩饱和度欠...</a></td>

<td class="showlist1"><font color='#808080'>04-06</font></td>

</tr><tr>

<td class="showlist2">· <font color='#FF0066'>[组图]</font><a href='/Article/photo/photoshop/10712.html' target="_blank" title='文章标题:Photoshop鼠绘一个鲜脆欲滴的苹果 发布时间:2006-4-6 10:24:26 阅览次数:1' class=showlist>Photoshop鼠绘一个鲜脆欲滴...</a></td>

<td class="showlist2"><font color='#80


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/7295778.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-04
下一篇 2023-04-04

发表评论

登录后才能评论

评论列表(0条)

保存