13、在HTML中,用于设置页面元信息的标示符是( )。
A、 <title>
B、 <base>
C、 <head>
D、 <meta>
答案:D
解析:这道题目考察的是HTML中用于设置页面元信息的标示符。
解析各个选项:
A.
:这个标签用于定义文档的标题,这个标题会显示在浏览器的标签栏或者标题栏上,但它不是专门用于设置页面元信息的。<br/><br/>B. <base>:<base> 标签为页面上的所有 URL 规定一个基本 URL。无论页面上的链接是什么,拥有 <base> 标签后,浏览器都会自动将链接的基本 URL 解析为 <base> 标签中指定的那个。但它也不是专门用于设置页面元信息的。<br/><br/>C. <head>:<head> 标签用于包含了所有的头部(header)元素。这些元素描述了文档的元数据(meta-data),包括文档的标题(title)、使用的字符集、对外部文件(如样式表、脚本)的引用等。但 <head> 本身不是用于设置页面元信息的具体标签,而是包含这些信息的容器。<br/><br/>D. <meta>:<meta> 标签提供了 HTML 文档的元数据。元数据是关于数据的数据,不会直接显示在页面上,但是对于机器是可读的。元数据可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。这正是用于设置页面元信息的标签。<br/><br/>因此,正确答案是 D,<meta> 标签用于设置页面元信息。</p>
</div>
</div>
<div>
<div class="bkfu" style="padding: 10px;border-radius: 10px;margin:0px 10px;text-align: center;min-height: 212.6px;">
<div class="biankuang-sj" style="text-align: center;">
<img style="width: 130px;margin-bottom: 5px;" src="https://shititong.oss-cn-shenzhen.aliyuncs.com/stt/xcx/weixin_saoyisao.png" alt="">
<div>
<div id="qrcode2" style="width: 130px;height: 130px;margin-left: calc(50% - 65px);"></div>
<div>计算机网络基础选择题库</div>
</div>
</div>
</div>
</div>
<div class="caozuo" style="height: auto;margin-top: 20px;"></div>
</div>
<div class="quxiazai" style="width: 100%;bottom: 0px;">
<img style="width: 100%;" src="https://shititong.oss-cn-shenzhen.aliyuncs.com/wen/images/guanggao.png" alt="">
</div>
</div>
<div class="themaintwo" style="width: 100%;margin-top: 10px;overflow: hidden;">
<div style="width: 100%;border: 1px solid rgba(112, 112, 112, 0.2)">
<div>
<div class="qitarow" style="padding: 10px;border-radius: 10px;">
<div style="font-weight: 600;">
14、下列选项中,不属于文本标记属性的是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-273a-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-273a-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-273a-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
15、在网页中插入图像,若图像文件位于html文件的上两级文件夹,则在文件名之前加入( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2973-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2973-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2973-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
16、在HTML文档头部标记中,使用<meta>标记的name和content属性可以为搜索引擎提供信息。设置网页关键字的name属性值应该为( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2b6e-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2b6e-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2b6e-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
17、下列关于特殊字符的说法不正确的是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2ddd-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2ddd-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2ddd-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
18、下列标记中用于定义HTML文档所要显示内容的是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-300b-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-300b-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-300b-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
19、下列选项中,没有对应的结束标记的是( ) 。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3242-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3242-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-3242-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
20、下列不是HTML中特殊字符的字符转义序列是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3462-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3462-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-3462-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
21、<img />标记链接图片的属性是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3696-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3696-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-3696-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
22、下列标记中,用于定义HTML文档所要显示内容的是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-39a2-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-39a2-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-39a2-c0a8-777418075700>
点击查看题目
</div>
</a>
<div style="font-weight: 600;">
23、在HTML中,常用的字符集编码方式有UTF-8和gb2312两种。下列关于字符集的描述正确的是( )。
</div>
<a class="shitisdj" target="_blank" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3bd7-c0a8-777418075700.html>
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3bd7-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-3bd7-c0a8-777418075700>
点击查看题目
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="daohang" style="margin-top: 90px;">
<a href="https://www.shititong.cn" target="_blank">
<div style="display: inline-block;">首页</div>
</a>>
<a href="https://www.shititong.cn/page/tiku.html">
<div style="display: inline-block;">财会金融</div>
</a>>
<a href="https://www.shititong.cn/cha-kan/tikuheji/CAE4F0338A100001263A10CE58203A80.html" target="_blank">
<div style="display: inline-block;">计算机网络基础选择题库</div>
</a>
<div class="dizhicunfang" style="display: none;width: 0px;height: 0px;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2524-c0a8-777418075700.html
</div>
</div>
<div class="themain">
<div class="themianone">
<div class="zuoce">
<div class="zuoce1">
<div class="zctop">
<div class="zjyl">
<div style="display: flex;color: #2E56EC;font-size: 18px;align-items: center;">
<div style="border-left: 3px solid #2E56EC;padding-left: 5px;">题目内容</div>
<div style="color: #bcbcbc;font-size: 14px;margin-left: 5px;">(</div>
<div style="color: #bcbcbc;font-size: 14px;">单选题</div>
<div style="color: #bcbcbc;font-size: 14px;">)</div>
</div>
</div>
<div class="sjyl">
<div style="text-align: right;">
手机预览
</div>
<div class="sjylxia">
<div class="biankuang-xiao" style="text-align: center;">
<img style="width: 130px;margin-bottom: 5px;" src="https://shititong.oss-cn-shenzhen.aliyuncs.com/stt/xcx/weixin_saoyisao.png" alt="">
<div>
<div id="qrcode3" style="width: 130px;height: 130px;margin-left: calc(50% - 65px);">
</div>
<div>
计算机网络基础选择题库
</div>
</div>
</div>
</div>
</div>
</div>
<div class="zctwo" style="margin-top: 13px;">
<div class="timuxs">
<h1 style="font-size: 18px;">13、在HTML中,用于设置页面元信息的标示符是( )。
</h1>
<div>
<p>
A、 <title>
</p>
<p>
B、 <base>
</p>
<p>
C、 <head>
</p>
<p>
D、 <meta>
</p>
</div>
<p class="daanxianshi">答案:D</p>
<p class="jiexixianshi">解析:这道题目考察的是HTML中用于设置页面元信息的标示符。<br/><br/>解析各个选项:<br/><br/>A. <title>:这个标签用于定义文档的标题,这个标题会显示在浏览器的标签栏或者标题栏上,但它不是专门用于设置页面元信息的。<br/><br/>B. <base>:<base> 标签为页面上的所有 URL 规定一个基本 URL。无论页面上的链接是什么,拥有 <base> 标签后,浏览器都会自动将链接的基本 URL 解析为 <base> 标签中指定的那个。但它也不是专门用于设置页面元信息的。<br/><br/>C. <head>:<head> 标签用于包含了所有的头部(header)元素。这些元素描述了文档的元数据(meta-data),包括文档的标题(title)、使用的字符集、对外部文件(如样式表、脚本)的引用等。但 <head> 本身不是用于设置页面元信息的具体标签,而是包含这些信息的容器。<br/><br/>D. <meta>:<meta> 标签提供了 HTML 文档的元数据。元数据是关于数据的数据,不会直接显示在页面上,但是对于机器是可读的。元数据可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。这正是用于设置页面元信息的标签。<br/><br/>因此,正确答案是 D,<meta> 标签用于设置页面元信息。</p>
</div>
</div>
<div style="display: flex;align-items: center;justify-content: space-between;padding: 5px;border: 1px solid rgba(112, 112, 112, 0.25);background: #E8EFFF;">
<div style="background: #E8EFFF;padding: 3px 8px;display: flex;margin-left: 10px;">
<div style="font-weight: 600;color: #55557f;margin-right: 10px;">
相关题库:
</div>
<a id="zzz1" data-value="https://www.shititong.cn/cha-kan/tikuheji/CAE4F0338A100001263A10CE58203A80.html" href="https://www.shititong.cn/cha-kan/tikuheji/CAE4F0338A100001263A10CE58203A80.html" target="_blank">
<div style="display: inline-block;color: #55aaff;">计算机网络基础选择题库</div>
</a>
</div>
<div class="fenxiangbtn" style="display: flex;margin-right: 5px;font-weight: 600;cursor: pointer;">
<img style="width: 18px;margin-right: 3px;" src="https://xiaowei-1255622506.cos.ap-shanghai.myqcloud.com/tupian/48111678928967866.png" alt="">
<div style="color: #bcbcbc;">
分享
</div>
</div>
</div>
<div>
<div class="bkfu" style="padding: 10px;border-radius: 10px;margin: 10px;text-align: center;min-height: 262.6px;">
<img class="bkfuyin" style="width: 100%;" src="https://shititong.oss-cn-shenzhen.aliyuncs.com/stt/xcx/dati_gongneng.jpg" alt="">
<div class="biankuang" style="text-align: center;">
<img style="width: 200px;margin-bottom: 5px;" src="https://shititong.oss-cn-shenzhen.aliyuncs.com/stt/xcx/weixin_saoyisao.png" alt="">
<div>
<div id="qrcode1" style="width: 200px;height: 200px;margin-left: calc(50% - 100px);"></div>
<div>
计算机网络基础选择题库
</div>
</div>
</div>
</div>
</div>
</div>
<div class="zuoce2">
<div style="border: 1px solid rgba(112, 112, 112, 0.2);margin-top: 10px;">
<div class="zctop" style="width: 100%;">
<div class="zjyl">相关题目</div>
</div>
<div>
<div style="margin-top: 10px;width: 90%;margin-left: 5%;margin-bottom: 10px;">
<div class="qitarow" style="margin-top: 30px;border: 1px solid #55aaff;padding: 10px;border-radius: 10px;">
<div style="font-weight: 600;">
14、下列选项中,不属于文本标记属性的是( )。
</div>
<div>
<p>
A. nbsp;
</p>
<p>
B. align
</p>
<p>
C. color
</p>
<p>
D. family
</p>
</div>
<p class="jiexixianshi">解析:这道题考察的是HTML(超文本标记语言)中的文本标记属性。<br/><br/>A. nbsp; - 这是一个实体字符,用于在HTML中创建不断行的空格。它不属于属性,而是一个字符实体。<br/><br/>B. align - 这是一个属性,可以用于多种HTML元素(尽管在HTML5中已经废弃某些用法),用来指定对齐方式,如左对齐、右对齐或居中对齐。<br/><br/>C. color - 这是用于定义文本颜色的属性,可以应用于许多元素,如<font>(已废弃)或<span>等,以改变文字颜色。<br/><br/>D. family - 这通常是指font-family属性,用于定义文本的字体类型。<br/><br/>因此,正确答案是A,因为nbsp;是一个字符实体,而不是属性。其他选项B、C和D都是文本标记属性。</p>
<a class="shitisdj" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-273a-c0a8-777418075700.html target="_blank">
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-273a-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-273a-c0a8-777418075700>
点击查看答案
</div>
</a>
<div style="font-weight: 600;">
15、在网页中插入图像,若图像文件位于html文件的上两级文件夹,则在文件名之前加入( )。
</div>
<div>
<p>
A. ../
</p>
<p>
B. /
</p>
<p>
C. ./
</p>
<p>
D. ../../
</p>
</div>
<p class="jiexixianshi">解析:这道题目考察的是在网页中引用相对路径的知识。在HTML中,路径用于定位文件,如图像、CSS文件、JavaScript文件等,相对于当前HTML文件的位置。这里的选项代表不同类型的路径:<br/><br/>A. ../:表示上一级目录(父目录)。<br/>B. /:表示根目录(在Web服务器上通常是网站的根目录)。<br/>C. ./:表示当前目录(通常可以省略)。<br/>D. ../../:表示上两级目录(即当前目录的父目录的父目录)。<br/><br/>题目要求插入的图像文件位于HTML文件的上两级文件夹。这意味着我们需要从当前HTML文件出发,向上移动两级目录来找到图像文件。<br/><br/>选项A(../)只能回到上一级目录,不符合要求。<br/>选项B(/)指向根目录,通常不会直接指向目标文件,除非知道图像在根目录下的确切位置,这里不适用。<br/>选项C(./)是当前目录,对定位上两级目录的图像文件没有帮助。<br/>选项D(../../)正确地表示了向上移动两级目录,因此是正确答案。<br/><br/>综上所述,为了引用位于HTML文件上两级文件夹中的图像文件,我们需要在文件名之前加入../../,所以正确答案是D。</p>
<a class="shitisdj" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2973-c0a8-777418075700.html target="_blank">
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2973-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2973-c0a8-777418075700>
点击查看答案
</div>
</a>
<div style="font-weight: 600;">
16、在HTML文档头部标记中,使用<meta>标记的name和content属性可以为搜索引擎提供信息。设置网页关键字的name属性值应该为( )。
</div>
<div>
<p>
A. keywords
</p>
<p>
B. description
</p>
<p>
C. charset
</p>
<p>
D. expires
</p>
</div>
<p class="jiexixianshi">解析:选项解析:<br/><br/>A. keywords - 这个选项是正确的。在HTML文档中,<meta> 标记的 name 属性设置为 “keywords” 时,content 属性可以包含一系列用逗号分隔的关键字,这些关键字向搜索引擎描述了网页的主要内容,有助于搜索引擎优化(SEO)。<br/><br/>B. description - 这个选项不正确。虽然"description"也是<meta>标记的一个合法的name属性值,但它用于提供网页内容的简短描述,通常显示在搜索结果页中,而不是用于设置网页关键字。<br/><br/>C. charset - 这个选项不正确。"charset"用于指定HTML文档的字符编码,它通常写作<meta charset="UTF-8">,而不是使用name和content属性。<br/><br/>D. expires - 这个选项不正确。"expires"用于设置网页缓存过期的时间,它也是<meta>标记的一个http-equiv属性值,而不是name属性值。<br/><br/>为什么选择A: 正确答案是A,因为在HTML文档中使用<meta>标记来设置网页关键字时,应该将name属性值设为"keywords",并在content属性中列出相关的关键字。这样做可以向搜索引擎提供关于页面内容的关键信息,帮助搜索引擎更好地索引和分类网页,从而提升网站在搜索结果中的可见度。其他选项虽然也是<meta>标记的一部分,但它们各自有不同的用途,不符合题目中要求设置网页关键字的需求。</p>
<a class="shitisdj" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2b6e-c0a8-777418075700.html target="_blank">
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2b6e-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2b6e-c0a8-777418075700>
点击查看答案
</div>
</a>
<div style="font-weight: 600;">
17、下列关于特殊字符的说法不正确的是( )。
</div>
<div>
<p>
A. 特殊字符的代码通常由前缀"&"、字符名称和后缀为英文状态下的";"组成
</p>
<p>
B. 可以通过菜单栏直接插入相应特殊字符的代码
</p>
<p>
C. 转义序列各字符间可以有空格
</p>
<p>
D. 转义序列必须以分号结束
</p>
</div>
<p class="jiexixianshi">解析:这是一道关于特殊字符及其表示方法的选择题。我们需要根据计算机网络和HTML相关知识来分析每个选项的正确性,并找出不正确的说法。<br/><br/>A. 特殊字符的代码通常由前缀"&"、字符名称和后缀为英文状态下的";"组成:<br/><br/>这个说法是正确的。在HTML中,特殊字符(如小于号“<”、大于号“>”、和号“&”等)通常使用这种形式的代码来表示,以避免与HTML标签的语法冲突。例如,< 表示小于号,“<”。<br/><br/>B. 可以通过菜单栏直接插入相应特殊字符的代码:<br/><br/>这个说法通常也是正确的,尽管它依赖于具体的软件或编辑器的功能。许多现代的文本编辑器和网页设计软件都提供了通过菜单栏直接插入特殊字符的功能,而不是要求用户手动输入其HTML代码。<br/><br/>C. 转义序列各字符间可以有空格:<br/><br/>这个说法是不正确的。在HTML中,转义序列(即特殊字符的代码)的各字符间不能有空格。例如,& lt;(中间有空格)不是有效的转义序列,而<才是。空格会破坏代码的语法,导致它无法被正确解析。<br/><br/>D. 转义序列必须以分号结束:<br/><br/>这个说法是正确的。在HTML中,特殊字符的转义序列确实需要以分号(;)结束。虽然某些浏览器可能对省略分号的情况有一定的容错性,但按照标准做法,每个转义序列都应该以分号结束。<br/><br/>综上所述,不正确的说法是C选项:转义序列各字符间可以有空格。这是因为在HTML中,转义序列的字符间不能包含空格,否则它将无法被正确解析。</p>
<a class="shitisdj" href=https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2ddd-c0a8-777418075700.html target="_blank">
<div style="display: none;">
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-2ddd-c0a8-777418075700.html
</div>
<div class="tzlingyiti" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #55aaff;margin-top: 5px;margin-bottom: 15px;" theid=00158447-8a22-2ddd-c0a8-777418075700>
点击查看答案
</div>
</a>
<div style="font-weight: 600;">
18、下列标记中用于定义HTML文档所要显示内容的是( )。
</div>
<div>
<p>
A. <head></head>
</p>
<p>
B. <body></body>
</p>
<p>
C. <html></html>
</p>
<p>
D. <title></title>
</p>
</div>
<p class="jiexixianshi">解析:这道题考察的是HTML文档结构的基础知识。<br/><br/>A. <head></head>:这个标签对用于定义文档的头部,其中可以包含文档的元数据,如标题(<title>)、样式、脚本和链接等,但它不直接用于显示内容。
B. :这个标签对是正确的答案,因为标签用于定义HTML文档的主体,即浏览器中显示的所有内容,如文本、图片、音视频、表格、列表等,都是放在这个标签内的。
C. :这个标签对是所有其他HTML元素的父元素,它表示整个HTML文档的开始和结束,但它本身并不直接用于显示内容。
D.
:这个标签对用于定义浏览器工具栏的标题,以及当网页添加到收藏夹时显示的标题,它通常只包含文本,并且不会在浏览器主内容区域显示。
因此,正确答案是B,因为只有标签对用于定义HTML文档所要显示的内容。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-300b-c0a8-777418075700.html
点击查看答案
19、下列选项中,没有对应的结束标记的是( ) 。
A. <title>
B. <body>
C. <html>
D. <br />
解析:这是一道关于HTML标签结构的问题。在HTML中,标签分为自闭合标签和非自闭合标签。非自闭合标签需要有一个开始标签和一个结束标签来包围内容,而自闭合标签则不需要结束标签,因为它们不包围任何内容。
现在,我们来逐一分析每个选项:
A.
<br/><br/>这是一个非自闭合标签,用于定义文档的标题。它需要一个结束标签来闭合。因此,A选项不符合题意。
B.
这也是一个非自闭合标签,用于定义文档的主体部分。它同样需要一个结束标签来闭合。因此,B选项不符合题意。
C.
这是HTML文档的根标签,用于包含整个HTML文档。它也需要一个结束标签来闭合整个文档。因此,C选项不符合题意。
D.
这是一个自闭合标签,用于在文档中插入一个简单的换行。在HTML中,自闭合标签不需要结束标签,因为它们不包围任何内容。因此,D选项符合题意。
综上所述,正确答案是D,因为
是自闭合标签,没有对应的结束标记。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3242-c0a8-777418075700.html
点击查看答案
20、下列不是HTML中特殊字符的字符转义序列是( )。
解析:选项解析:
A. \ - 在HTML中,反斜杠(\)并不是一个特殊字符的转义序列。在HTML中通常使用它来转义引号等字符,但这并不是标准用法,标准转义序列通常使用 & 符号开头。
B. < - 这是小于号(<)的HTML转义序列。在HTML中,小于号用于标签的开始,直接使用会破坏文档结构,因此需要转义。
C. > - 这是大于号(>)的HTML转义序列。在HTML中,大于号用于标签的结束,直接使用同样会破坏文档结构,因此需要转义。
D. ⊤ - 这个符号不是HTML中定义的特殊字符转义序列。在HTML中,特殊字符的转义序列通常是由 & 符号开头,后跟字符名,并以分号结尾。
为什么选D: 选项D ⊤ 并不符合HTML特殊字符转义序列的定义。HTML特殊字符转义序列是用来在HTML文档中安全地表示那些可能被解释为HTML标记的字符,如 <, >, & 等。这些序列都是以 & 开头,以 ; 结尾,而 ⊤ 既不是以 & 开头,也不是一个标准的HTML转义序列。因此,正确答案是D。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3462-c0a8-777418075700.html
点击查看答案
21、<img />标记链接图片的属性是( )。
A. src
B. alt
C. width
D. height
解析:这道题目是关于HTML中
标签用于链接图片的属性。
解析各个选项:
A. src:这个属性是
标签的核心属性,用于指定图片的来源URL(即图片的路径)。没有这个属性,图片将无法加载显示。因此,这个属性是用于“链接图片”的。
B. alt:这个属性用于提供图片的替代文本。当图片因为某种原因(如加载失败、用户使用了屏幕阅读器等)无法显示时,替代文本会被显示出来。虽然它对于图片的描述很重要,但它不是用于链接图片的。
C. width:这个属性用于设置图片的显示宽度。它影响图片的显示尺寸,但并不涉及图片的链接或来源。
D. height:这个属性用于设置图片的显示高度。和width属性一样,它影响图片的显示,但与图片的链接无关。
选择答案A的原因:题目问的是用于“链接图片”的属性,而src属性正是用来指定图片来源(即链接)的。因此,正确答案是A。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3696-c0a8-777418075700.html
点击查看答案
22、下列标记中,用于定义HTML文档所要显示内容的是( )。
A. <head></head>
B. <body></body>
C. <html></html>
D. <title></title>
解析:这道题考察的是HTML文档结构的基础知识。
A. :这个标签对用于定义HTML文档的头部,通常包含文档的元数据,如标题(
)、样式表链接、脚本链接和其他元信息。它不直接用于显示内容。
B. :这个标签对是正确答案,因为标签定义了HTML文档的主体,即浏览器中显示的页面内容,如文本、图片、视频、游戏、可播放的音频和视频等。
C. :这个标签对是所有其他HTML元素的父元素,它告诉浏览器这是一个HTML文档。它本身并不直接用于显示内容,而是作为一个容器包含所有的头部和主体内容。
D.
:这个标签对用于定义HTML文档的标题,即显示在浏览器标签页上的文本。它不是用来定义页面主体内容的。
因此,正确答案是B. ,因为这是唯一一个专门用于定义和包含HTML文档显示内容的标签对。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-39a2-c0a8-777418075700.html
点击查看答案
23、在HTML中,常用的字符集编码方式有UTF-8和gb2312两种。下列关于字符集的描述正确的是( )。
A. UTF-8字符集中,只有中文,没有日语、阿拉伯语等其他语言
B. 同样的文本,使用UTF-8格式要比gb2312格式文件体积小
C. UTF-8字符集由中国制定标准
D. 制作有韩语字符的网页,不能使用gb2312字符集
解析:解析以下这道题的各个选项以及选择答案D的原因:
A. UTF-8字符集中,只有中文,没有日语、阿拉伯语等其他语言
解析:UTF-8(Unicode Transformation Format-8 bits)是一种变长字节表示的Unicode字符集编码方式。它可以表示包括中文在内的几乎所有语言的字符,包括日语、阿拉伯语等。因此,这个选项是错误的。
B. 同样的文本,使用UTF-8格式要比gb2312格式文件体积小
解析:UTF-8编码的字节长度是可变的,对于英文等ASCII字符,UTF-8只需要1个字节,但对于中文等双字节字符,UTF-8通常需要3个字节。而gb2312是中国国家标准字符集,用于简体中文,采用双字节编码。如果文本全部由简体中文组成,gb2312可能会比UTF-8更节省空间。然而,如果文本包含多种语言的字符,UTF-8可能会更灵活和适用。因此,不能一概而论说UTF-8一定比gb2312文件体积小,这个选项是错误的。
C. UTF-8字符集由中国制定标准
解析:UTF-8是由Unicode组织制定的字符编码标准,而不是由中国制定的。gb2312是中国国家标准字符集,用于简体中文。因此,这个选项是错误的。
D. 制作有韩语字符的网页,不能使用gb2312字符集
解析:gb2312主要用于简体中文的编码,不包含韩语字符。如果要制作包含韩语字符的网页,应使用能够支持更多语言的字符集,如UTF-8。因此,这个选项是正确的。
选择答案D的原因:
D选项正确地指出了gb2312字符集不包含韩语字符,因此在制作包含韩语字符的网页时不能使用gb2312字符集。这是符合字符集编码原理的。
https://www.shititong.cn/cha-kan/shiti/00158447-8a22-3bd7-c0a8-777418075700.html
点击查看答案