您的位置:首页 > Web前端 > HTML5

HTML5快速上手之12:与表单(form)有关的基本指令

2016-10-09 17:31 381 查看
1.代码:

<!DOCTYPE html>
<html>
<head>
<title>文档标题</title>
</head>
<body>
此处为文本内容.......

<!-- 以下是与表单(form)有关的指令 -->
<form action="demo_form.php" method="post/get">
<input type="text" name="email" size="40" maxlength="50">
<input type="password">
<input type="checkbox" checked="checked">
<input type="radio" checked="checked">
<input type="submit" value="Send">
<input type="reset">
<input type="hidden">
<select>
<option>苹果</option>
<option selected="selected">香蕉</option>
<option>樱桃</option>
</select>
<textarea name="comment" rows="60" cols="20"></textarea>
</form>

</body>
</html>
2.结果:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: