网站建设资讯

NEWS

网站建设资讯

html中适合新手的练习示例-创新互联

这篇文章主要介绍了html中适合新手的练习示例,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

成都创新互联是一家专业提供南皮企业网站建设,专注与网站设计制作、网站建设H5网站设计、小程序制作等业务。10年已为南皮众多企业、政府机构等服务。创新互联专业网站设计公司优惠进行中。

第1题 考察title标签

html中适合新手的练习示例

html中适合新手的练习示例

出现在<head>里面,表示页面的标题。直观上,我们可以在浏览器的标题栏(标签栏)中看见。</p><p>B正确。</p><p>第2题 考察的就是HTML的本质</p><p><img src="/upload/otherpic39/2853.jpg" alt="html中适合新手的练习示例"></p><p>答案:D</p><p>解析:首先HTML只依靠标签对儿表达语义,和是否缩进、换行没有任何关系;只要是标签有正确的嵌套关系,正确的父子关系,那么就是一个合法的HTML结构,不一定要缩进。百度的首页,为了减小文件体积,所以都是没有缩进的。提到HTML的作用,只能从语义方面从想,绝对不能想样式。所以C错误的。D正确。</p><p>第3题 考察常用属性</p><p><img src="/upload/otherpic39/2854.jpg" alt="html中适合新手的练习示例"></p><p>答案:D。</p><p>此题主要是考查插入图片和超链接的标签,这两句都是比较容易记住的,大家好记住一些常用的标签语句。</p><pre>1            <img src="1.jpg"  /> 2              3            <a  href="1.html">点击我</a></pre><p>img是image“图像”;</p><p>src是source“资源”;</p><p>a是anchor“锚”;</p><p>href是hypertext reference“超文本地址”</p><p>第4题 考察HTTP的原理</p><p><img src="/upload/otherpic39/2855.jpg" alt="html中适合新手的练习示例"></p><p>答案:B。</p><p>服务器上有一些文件,html、图片、css、js文件,通过HTTP请求传输到了用户的电脑里面。所以,第二次访问的时候,这些图片就不用传输了,所以页面变得快。</p><p>A,错误,没有所谓的vip通路。</p><p>B,正确</p><p>C,错误。因为HTTP不是一个持久连接的协议,传完就拉倒了,就关闭连接了,所以没有一个持续的通路。</p><p>D,错误。每次访问,都是不同的寻址过程,不会“记路”。</p><p>第5题 纯文本</p><p><img src="/upload/otherpic39/2856.jpg" alt="html中适合新手的练习示例"></p><p>答案:C。</p><p>用记事本打开,不是乱码,是可读的,那么一定是纯本文文件。只有文本,没有样式,没有语义。</p><p>所以,.java文件是纯文本的,.class文件不是纯文本的。</p><p>所有的纯文本文件都能用记事本、notepad++、editplus、sublime编辑。</p><p>第6题 考察XHTML</p><p><img src="/upload/otherpic39/2857.jpg" alt="html中适合新手的练习示例"></p><p>答案:B。</p><p>所有的标签名、属性都要小写,必须使用引号,必须封闭。答案是B</p><p>第7题 考察定义列表</p><p><img src="/upload/otherpic39/2858.jpg" alt="html中适合新手的练习示例"></p><p>答案:B。</p><p>一定要记住每个标签标示什么,就是英语原意是什么?比如</p><p>dl 就是definition list, 定义列表;</p><p>dt 就是definition title,定义标题;</p><p>dd就是definition description,定义描述</p><p>第8题 考察相对路径</p><p><img src="/upload/otherpic39/2859.jpg" alt="html中适合新手的练习示例"></p><br/><p>1.html中,有一个能够点击的图片。所以骨架:</p><pre>1            <a  href=""><img src="" /></a></pre><p>href里面是相对路径,要从1.html出发找到2.html;</p><p>src里面也是相对路径,要从1.html出发找到kaola.png。</p><p>标准答案:</p><pre>1            <a href="../myweb2/2.html" target="_blank"><img  src="../../photo/kaola.png"  /></a></pre><p>我们一直在用的是相对路径,就是从自己出发找到别人。用相对路径的好处很明显,就是站点文件夹可以拷着走。</p><p>相对路径的好处:站点不管拷贝到哪里,文件和图片的相对路径关系都是不变的。</p><p>相对路径使用有一个前提,就是网页文件和你的图片,必须在一个服务器上。</p><p>比如,你现在想插入一个新浪网上的图片,那么就不能用相对路径。就要用绝对路径。</p><p>绝对路径非常简单,所有以http://开头的路径,就是绝对路径。</p><pre><img src="http://i1.sinaimg.cn/dy/deco/2013/0329/logo/LOGO_1x.png"  alt="" /> <a href="http://www.sohu.com">点击我跳转到搜狐</a></pre><p>如果我的网页在C盘,图片却在D盘,能不能插入呢?</p><p>答案:用相对路径不能,用绝对路径也不能。</p><p>注意,可以使用file://来插入,但是这种方法,没有任何意义!因为服务器上没有所谓c盘、d盘。</p><p>下面的方法是行的,但是没有任何工程上的意义,这是因为服务器没有盘符,linux系统没有盘符,</p><pre><img  src="file://C:\Users\Danny\Pictures\ 明星 \1.jpg" alt="" /></pre><p>感谢你能够认真阅读完这篇文章,希望小编分享的“html中适合新手的练习示例”这篇文章对大家有帮助,同时也希望大家多多支持创新互联<a href="https://www.cdcxhl.com/" target="_blank">网站建设公司</a>,,关注创新互联行业资讯频道,更多相关知识等着你来学习!</p> <br> 新闻名称:html中适合新手的练习示例-创新互联 <br> 标题来源:<a href="http://cdweb.net/article/dogjgs.html">http://cdweb.net/article/dogjgs.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/ddpccsp.html">java文字锐化代码 java swing 字体美化</a> </li><li> <a href="/article/ddpccjo.html">php大数据高并发库存 php yield 处理大数据</a> </li><li> <a href="/article/ddpccge.html">服务器安全拦截怎么解除 服务器安全拦截怎么解除绑定</a> </li><li> <a href="/article/ddpccph.html">帝国cms升序 帝国cms75</a> </li><li> <a href="/article/ddpccps.html">智能聊天润色效果 润色怎么用</a> </li> </ul> </div> </div> </div> <footer> <div class="footop"> <div class="wrap"> <div class="bottomrpw"> <div class="erp arp"> <dl> <dt>ADDRESS</dt> <dd class="address"> <i class="icon"></i> <span class="word">成都市青羊区锦天国际1号楼1002室</span> </dd> </dl> </div> <div class="erp arp"> <dl> <dt>TEL</dt> <dd class="phonum"> <i class="icon"></i> <span class="word en"> <a href="tel:18980820575">18980820575</a> </span> </dd> </dl> </div> <div class="erp crp"> <dl> <dt>OTHER</dt> <dd> <a class="word get-quote">获得报价与方案</a> </dd> <dd> <a href="#" target="_blank" rel='nofollow' class="word" title="付款方式">付款方式</a> </dd> </dl> </div> <div class="erp code-rp"> <dl> <dt>Wechat</dt> <dd class="code-wrap"> <span class="code"> <img src="/Public/Home/images/qr-code.jpg" alt="快上网微信公众号" /> </span> </dd> </dl> </div> </div> </div> </div> <div class="footerbot"> <div class="friendlinks"> <div class="wrap"> <ul class="rpl"> <li><a href="http://chengdu.cdweb.net/weixinkaifa/fuwuhao.html" title="微信服务号订阅号开发" target="_blank">微信服务号订阅号开发</a></li><li><a href="https://www.cdcxhl.com/ssl/chengdu.html" title="域名ssl证书" target="_blank">域名ssl证书</a></li><li><a href="http://www.kswsj.com/" title="成都网站建设" target="_blank">成都网站建设</a></li><li><a href="http://www.cdlinhua.com/" title="成都茶叶销售" target="_blank">成都茶叶销售</a></li><li><a href="https://www.cdcxhl.com/xiangyingshi.html" title="成都响应式网站建设公司" target="_blank">成都响应式网站建设公司</a></li><li><a href="http://www.xjjierui.cn/" title="新津网站运维" target="_blank">新津网站运维</a></li><li><a href="http://www.sslhqy.com/" title="成都公司注册" target="_blank">成都公司注册</a></li><li><a href="http://m.cdxwcx.com/xibuxinxi.html" title="西部信息中心" target="_blank">西部信息中心</a></li><li><a href="https://www.cdxwcx.com/tuiguang/" title="成都网络推广" target="_blank">成都网络推广</a></li><li><a href="https://www.cdcxhl.com/zuyong/meishan.html" title="眉山服务器租用" target="_blank">眉山服务器租用</a></li> </ul> </div> </div> <div class="wrap"> <div class="copyright"> <span class="en">©2007-2022</span> 成都快上网科技有限公司 <span class="en">ALL RIGHTS RESERVED.</span> <a rel="nofollow" href="http://www.miitbeian.gov.cn" target="_blank">蜀ICP备19037934号</a> </div> </div> </div> </footer> <div class="fcwrap"> <ul class="rpl clearfix"> <li class="phone"> <a rel="nofollow" target="_blank" href="tel:18980820575"> <i class="icon"></i> <strong>18980820575</strong> </a> </li> <li class="qq"> <a rel="nofollow" target="_blank" href="https://wpa.qq.com/msgrd?v=1&uin=244261566&site=qq&menu=yes"> <i class="icon"></i> <strong>244261566</strong> </a> </li> <li class="back-top"> <a href="javascript:void(0)" rel="nofollow" class="back-to-top"> <i class="icon"></i> <strong>回到顶部</strong> </a> </li> </ul> </div> <!--nav--> <div class="n-Wrap"> <div class="navBar visble show"> <div class="barlogo"> <a href="/" rel="nofollow"> <img src="/Public/Home/images/logo1.png" alt="成都做网站" /> <img src="/Public/Home/images/logo2.png" alt="成都网站设计" /> </a> </div> <div class="bmenu"> <i class="bar-top"><span></span></i> <i class="bar-cen"><span></span></i> <i class="bar-bom"><span></span></i> <i class="bar-left"><span></span></i> <i class="bar-right"><span></span></i> </div> </div> <section class="fixmenu"> <div class="close-bar"> <i class="bar-left"><span></span></i> <i class="bar-right"><span></span></i> </div> <nav class="smph"> <ul> <li class="index-hrefs on"><a href="http://www.cdweb.net/"><font>首页</font></a></li> <li><a href="/about/" rel="nofollow"><font>关于快上网</font></a></li> <li><a href="/service/" rel="nofollow"><font>服务范围</font></a></li> <li><a href="/case/" rel="nofollow"><font>案例展示</font></a></li> <li><a href="/solve/" rel="nofollow"><font>解决方案</font></a></li> <li><a href="/news/" rel="nofollow"><font>建站资讯</font></a></li> <li><a href="/contact/" rel="nofollow"><font>联系快上网</font></a></li> </ul> <div class="pwrap"> <span class="label">服务热线</span> <strong class="phone"><a href="tel:18980820575">18980820575</a></strong> </div> </nav> </section> </div> <!--end nav--> <script src="/Public/Home/js/hotcss.js"></script> <script type="text/javascript" src="/Public/Home/js/su_new.js"></script> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>