第二个web网页

1.源代码

<!DOCTYPE html>
  <html>
<head>
  <meta charset="UTF-8">--------------------字符编码
  <tittle>Second Web Page</tittle>------------------------网页标题
</head>
  <body>
<form>
    <h1>Second Web Page</h1>---------------------------------------------内容标题
    <label for="userName">ID: </label>--------------------------------------给用户界面加标题
    <input type="text" name="名字">
    <p><label for="userName">密码:</label>
    <input type="password" name="密码"></p>----------------------------输入“密码”类型
    <label for="phone">Phone:</label>
    <input type="tel" name="phone">
  <fieldset> ---------------------添加对话框
    <legend>Contact Information</legend> ----------------------------------对话框标题
    <p><input type="checkbox" name="feature" value="tel">
    <label for="tel">Tel</label>
    <input type="checkbox" name="feature" value="email">
    <label for="email">Email</label>
    <input type="checkbox" name="feature" value="address">
    <label for="address">Address</label></p>
  </fieldset>

  <p><input type="submit" value="Sign in"></p>--------------------------------增加键按钮


</form>

</body>
</html>

2.功能

一个简单的用户注册界面

3.感想

标签的使用很有趣,体现很直观。

猜你喜欢

转载自www.cnblogs.com/zl1234/p/9650580.html