html中适合新手的练习示例-创新互联-大悟县灿优商贸网站建设

关于灿优商贸

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

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://www.apyobr.com/article/dogjgs.html">http://www.apyobr.com/article/dogjgs.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/eseggi.html">抖音账号代运营培训班价格(杭州十大抖音账号代运营)</a> </li><li> <a href="/article/eseghi.html">凉山抖音代运营核心秘密</a> </li><li> <a href="/article/esegjh.html">短视频运营公司如何开发</a> </li><li> <a href="/article/eseghs.html">福州抖音号代运营</a> </li><li> <a href="/article/esegjo.html">云南抖音小店代运营哪家好</a> </li> </ul> </div> </div> <div class="line"></div> <!--底部--> <footer id="5"> <div class="foot1 container"> <div class="list"> <div class="item"> <a href="javascript:;"> <span class="ico1"><i class="iconfont"></i><img src="/Public/Home/img/ewm.png" alt=""></span> <strong>关注我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>索要报价</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>我要咨询</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>找到我们</strong> </a> </div> <div class="item"> <a href="" target="_blank"> <span><i class="iconfont"></i></span> <strong>投诉建议</strong> </a> </div> </div> <div class="tel"> <dl> <tel><a href="tel:18982081108" target="_blank">18982081108</a></tel><br> <span>也许您需要专业的服务,欢迎来电咨询</span> </dl> <dl> <tel><a href="tel:18980820575" target="_blank">18980820575</a></tel><br> <span>您的需求,是我们前进的动力</span> </dl> </div> </div> <div class="friend"> <div class="container"> <span class="tit">友情链接:</span> <div class="inner"> <a href="https://www.cdcxhl.com/pinpai.html" target="_blank">品牌网站建设公司</a><a href="https://www.cdcxhl.com/" target="_blank">成都建站</a><a href="https://www.cdcxhl.com/douyin/" target="_blank">抖音代运营</a><a href="https://www.cdcxhl.com/pinpai.html" target="_blank">成都品牌网站建设</a><a href="https://www.cdcxhl.com/xiaochengx.html" target="_blank">成都微信小程序开发</a><a href="https://www.cdcxhl.com/waimao.html" target="_blank">外贸建站</a><a href="https://www.cdcxhl.com/zuyong/" target="_blank">成都物理服务器租用</a><a href="https://www.cdcxhl.com/hangyead/" target="_blank">一元广告投放</a><a href="https://www.cdcxhl.com/tuoguan/" target="_blank">成都托管服务器</a><a href="https://www.cdcxhl.com/zuyong/" target="_blank">服务器租用</a><a href="https://www.cdcxhl.com/app.html" target="_blank">app软件开发</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">手机网站制作</a><a href="https://www.cdcxhl.com/app.html" target="_blank">成都app开发公司</a><a href="https://www.cdcxhl.com/xiyun.html" target="_blank">移动主机托管</a><a href="https://www.cdcxhl.com/google.html" target="_blank">谷歌优化排名</a><a href="https://www.cdcxhl.com/" target="_blank">成都做网站</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">成都手机网站建设</a><a href="https://www.cdcxhl.com/hangyead/" target="_blank">广告投放平台</a> </div> </div> </div> <div class="foot"> <div class="container"> <div class="footNav"> <h3>网站建设</h3> <a href="https://www.cdxwcx.com/city/wenjiang/" target="_blank">温江网站建设</a><a href="https://www.cdcxhl.com/mobile.html" target="_blank">移动网站建设</a><a href="https://www.cdcxhl.com/yingxiao.html" target="_blank">成都营销网站建设</a> </div> <div class="footNav"> <h3>服务器托管</h3> <a href="https://www.cdcxhl.com/idc/cqstsanx.html" target="_blank">重庆水土三线托管</a><a href="https://www.cdcxhl.com/cqtuoguan.html" target="_blank">重庆服务器托管</a><a href="https://www.cdcxhl.com/tuoguan/zongshu/" target="_blank">成都棕树机房</a> </div> <div class="footNav"> <h3>网站制作</h3> <a href="http://www.cqcxhl.com/" target="_blank">网站制作</a><a href="http://m.cdcxhl.cn/dingzhi/" target="_blank">定制网站制作</a><a href="http://chengdu.cdxwcx.cn/wangzhan/" target="_blank">手机网站制作</a> </div> <div class="footNav"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/shoulu/" target="_blank">网站免费收录</a><a href="https://www.cdcxhl.com/service/beian.html" target="_blank">网站备案</a><a href="https://www.cdcxhl.com/shoulu/" target="_blank">免费收录</a> </div> <div class="fr ecode"> <div class="fl"> <img src="/Public/Home/img/ewm.jpg"> <p>关注企业微信</p> </div> <div class="fr slogan"> <p class="icon"> <a class="ph" href=""><i class="iconfont"></i></a> <a class="qq" href="tencent://message/?uin=1683211881&Site=&Menu=yes"><i class="iconfont"></i></a> </p> <p> <i>想要找 </i> <a href="https://www.cdcxhl.com/xiaochengx.html">小程序开发</a>、<a href="https://www.cdcxhl.com/app.html">APP开发</a>、 <a href="https://www.cdcxhl.com/yingxiao.html">营销型网站建设</a>、<a href="https://www.cdxwcx.com/">网站建设</a>、 <i><a href="https://www.cdcxhl.com/wangzhandingzhi.html">网站定制开发</a></i> ,就选<a href="http://www.apyobr.com/">灿优商贸</a> </p> </div> </div> </div> <div class="bottom container"> <p class="fl"> 版权所有:大悟县灿优商贸有限公司 备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">鄂ICP备2025125667号-8</a> 服务热线:18982081108 </p> <p class="fr"> <a href="https://www.cdxwcx.com/" target="_blank">成都网站建设</a>: <a href="https://www.cdcxhl.com/" target="_blank">创新互联</a> </p> </div> </div> </footer> <!--在线咨询--> <div class="fot"> <ul> <li> <a href="#" target="_blank"> <img src="/Public/Home/img/fot1.png" alt=""> <p>在线咨询</p> </a> </li> <li> <a href="tel:18980820575" target="_blank"> <img src="/Public/Home/img/fot2.png" alt=""> <p>拨打电话</p> </a> </li> </ul> </div> </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>