导航菜单

表单与语义化

HTML表单用于收集用户输入,是网页交互的核心。表单通过<form>标签定义,常配合input、textarea、button等控件。
<form action="/submit" method="post">
  <input type="text" name="username" placeholder="用户名" />
  <input type="password" name="password" placeholder="密码" />
  <button type="submit">登录</button>
</form>