
批改狀態(tài):合格
老師批語:沒什么問題
Emmet: 快速編寫 html 文檔的神器(VSCode 內(nèi)置插件)
用法:
!
{text}
[attr],#id,.class
*
>
+
^
(emmet)
$,$@,$@-n
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<form action="" method="post"></form>
<fieldset style="display: inline-grid; gap: 1em">
<div class="username">
<label for="uname">用戶名:</label>
<input type="text" id="uname" name="uname" value="" placeholder="please input your name" autofocus required />
</div>
<div class="email">
<label for="email">email:</label>
<input type="email" name="email" id="email" placeholder="xxx@email.com" />
</div>
<div class="paw">
<lable>密碼:</lable>
<input type="password" name="" id="" />
</div>
<div>
<label for="">學(xué)號:</label>
<input type="number" name="" id="">
</div>
<div>
<!-- 注意時間 一定要8位 1982-01-01 -->
<label for="">出生年月日:</label>
<input type="date" name="" id="">
</div>
<div>
<label for="">性別:</label>
<input type="radio" name="sex" id="male" value="male" checked /><label for="male">男</label>
<input type="radio" name="sex" id="fmale" value="fmale" /><label for="fmale">女</label>
<!-- 復(fù)選框的情況下 name不可以相同,否則只會想radio 值會被覆蓋只返回一個值 -->
</div>
<div class="hobby">
<label for="">愛好:</label>
<input type="checkbox" name="hobby[]" id="shoot" value="shoot" /><label for="shoot">攝影</label>
<input type="checkbox" name="hobby[]" id="game" value="game" /><label for="game">游戲</label>
</div>
<div class="edu">
<label for="">學(xué)歷:</label>
<select name="" id="">
<option value="" selected disabled>please select</option>
<option value="1">幼兒園</option>
<option value="2">小學(xué)</option>
<option value="3">初中</option>
</select>
</div>
<button>提交</button>
</fieldset>
</body>
</html>
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號