H5学习

作者: LiWeiJ | 来源:发表于2021-03-13 15:25 被阅读0次

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>

相关文章

网友评论

      本文标题:H5学习

      本文链接:https://www.haomeiwen.com/subject/thyxcltx.html