• 2022-06-05
    设置网页默认超链接的代码是:
    A: <base href="http://baidu.com" target="_blank">
    B: <meta charset="utf-8">
    C: <meta name="Keywords" content="HTML5">
    D: <meta name="author" content="Ivan">
  • A
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/jamxooaezxyxzoo.html

    内容

    • 0

      如果需要规定HTML文档作者的姓名为“刘平峰”,则正确的选项为( )。 A: &lt;meta name=&quot;description&quot; content=&quot;刘平峰&quot;/&gt; B: &lt;meta name=&quot;name&quot; content=&quot;刘平峰&quot;/&gt; C: &lt;meta name=&quot;keywords&quot; content=&quot;刘平峰&quot;/&gt; D: &lt;meta name=&quot;generator&quot; content=&quot;刘平峰&quot;/&gt;

    • 1

      下面关于设置编码格式得语法正确的是()。 A: &lt;meta charset=&quot;UTF-8&quot;&gt; B: &lt;meta charset=&quot;UTF-8&quot; http-equiv=&quot;Content-Type&quot;content=&quot;text/html;charset=&quot;UTF-8&quot;/&gt; C: 以上都错误 D: &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=&quot;UTF-8&quot;/&gt;

    • 2

      设计响应式页面,需要控制网页在设备上的可视区域,请问下面哪条代码是正确的? A: &lt;style width=device-width, initial-scale=1.0 /&gt; B: &lt;meta name="viewport" content="width=device-width, initial-scale=1.0 &gt; C: &lt;meta name="viewport" &gt; D: &lt;width=device-width, initial-scale=1.0 &gt;

    • 3

      如果要指定当前网页在客户端缓存中的有效期为30分钟,则正确的选项为( )。 A: &lt;meta http-equiv=&quot;refresh&quot; content=&quot;30″ /&gt; B: &lt;meta http-equiv=&quot;pragma&quot; content=&quot;no-cache″/&gt; C: &lt;meta http-equiv=&quot;expires&quot; content=&quot;1800″/&gt; D: &lt;meta http-equiv=&quot;expires&quot; content=&quot;30″/&gt;

    • 4

      如果网页中出现乱码,我们一般使用()来解决。 A: &lt;meta charset="utf-8" /&gt; B: &lt;style type="text/css"&gt;&lt;/style&gt; C: &lt;script&gt;&lt;/script&gt; D: &lt;link type="text/css" rel="stylesheet" href="css/index.css"&gt;