示例工程 04-head-metadata

04-head-metadata/demo-01-meta/index.html

html · 0.5 KB

运行:元数据不显示

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>元数据不显示</title>
    <meta name="description" content="description 不会出现在页面正文里。" />
    <meta name="theme-color" content="#15803d" />
    <meta name="robots" content="index, follow" />
  </head>
  <body>
    <h1>元数据不显示</h1>
    <p>这段文字在 body;description 与 robots 只在 head。</p>
    <p>打开 View Source 对照。</p>
  </body>
</html>