<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>html笔记</title>
</head>
<body>
<!-- form表单练习 -->
<form action="reg.php" method="post" enctype="multipart/form-data">
<h1>用户注册</h1>
<table>
<tr>
<td>用户名:</td>
<td><input type="text" name="username" readonly='readonly' value="haha"></td>
</tr>
<tr>
<td>密码:</td>
<td><input type="text" name="password"></td>
</tr>
<tr>
<td>上传文件:</td>
<td><input type="file" name="password"></td>
</tr>
<tr>
<td><input type="submit" value="注册"></td>
<td><input type="reset" value="重置"></td>
</tr>
</table>
<!-- 下拉列表 -->
<select name="city">
<option value="">北京</option>
<option value="">上海</option>
</select>
<!-- 单选 maxlength='6'最大输入字符数 disable value='lala'显示不可操作-->
<label><input type="radio" name="sex" >男</label>
<label><input type="radio" name="sex">女</label>
<!-- 多选 -->
<label><input type="checkbox" name="lover[]">自行车</label>
<label><input type="checkbox" name="lover[]">汽车</label>
<br>
<!-- 文本域 -->
<textarea name="mess" cols="50" rows="10" ></textarea>
<!-- 内嵌框架 -->
<iframe src=""></iframe>
<hr>
<!-- Frame框架 -->
<!-- 行分开 -->
<frameset rows="60,*" frameborder="1" border="1px">
<frame src="#" name="top">
<frameset cols="100,*">
<frame src="#" name="left" noresize="noresize">
<frame src="#" name="right">
</frameset>
</frameset>
跳转时用<a href="" target="top"></a>
<embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="" height=""></embed>
<video src="movie.ogg" controls="controls"></video>
<audio src="song.ogg" controls="controls"></audio>
</body>
</html>
html学习笔记(二)
最新推荐文章于 2024-07-25 11:52:08 发布