示例工程 03-elements-attributes

03-elements-attributes/demo-01-anatomy/index.html

html · 0.8 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>
  </head>
  <body>
    <h1>元素解剖</h1>
    <p>
      这是一个链接:
      <a href="#target" title="跳到目标">点我</a>
    </p>
    <p id="target">目标段落:<code>id</code> 在页面内唯一。</p>
    <p>
      <button type="button" disabled>禁用按钮</button>
      <button type="button">可用按钮</button>
    </p>
    <p>
      <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Crect width='120' height='60' fill='%23dbeafe'/%3E%3C/svg%3E" alt="浅蓝色占位图" width="120" height="60" />
    </p>
  </body>
</html>