H5学习

2021-03-13  本文已影响0人  LiWeiJ

1.登录页面------

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title></title>

</head>

<body>

<form action="" method="">

<div id="">

用户名: <input type="" name="account" id="" value="" />

</div>

<div id="">

<!--

type:password 设置输入框内容为暗文*****

name值为提交的参数名称

-->

密码: <input type="password" name="password" id="" value="" />

</div>

<div id="">

<!--

单选框: radio name属性要一致,name值为提交的参数名称,value为参数 checked:选中

-->

性别:<input type="radio" name="sex" id="" value="1" checked="true" />男

<input type="radio" name="sex" id="" value="0" />女

</div>

<div id="">

<!--

type:submit 提交按钮 value设置按钮文字

-->

<input type="submit" name="" id="" value="登录" />

</div>

</form>

</body>

</html>

上一篇 下一篇

猜你喜欢

热点阅读