示例工程 06-profile-page

06-profile-page/demo-01-structure/index.html

html · 0.7 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>
    <header>
      <a href="#main">林小满</a>
      <nav aria-label="主导航">
        <a href="#about">关于</a>
        <a href="#contact">联系</a>
      </nav>
    </header>
    <main id="main">
      <h1>林小满</h1>
      <section id="about">
        <h2>关于</h2>
        <p>前端工程师。</p>
      </section>
      <section id="contact">
        <h2>联系</h2>
        <address>hi@example.com</address>
      </section>
    </main>
    <footer>
      <p>&copy; 2026 林小满</p>
    </footer>
  </body>
</html>