form 表单

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
            <form>
            输入名称<input type="text"><br>
            输入密码<input type="password"><br>
                <!-- 单选按钮 
                name 分组
                -->
            选择性别<input type="radio" name="sex"><input type="radio" name="sex"><br>
        <!-- 默认被选中 
        checked   -->
        性别默认选择男<input type="radio" checked="checked"><br>
        选择爱好<input type="checkbox" >足球
                        <input type="checkbox" >篮球
                        <input type="checkbox" >羽毛球
                        <br>
                        <input type="reset"  value="清除恢复默认">
                        <input type="submit"  value="提交"><br>
        选择文件<input type="file" ><br>
        一个图片<input type="image" src="11.jpg"><br>
        <!-- 隐藏数据不需要客户端知道,但是可以将其提交到服务端 -->
        隐藏组件<input type="hidden"><br>    
        一个按钮<input type="button" value="这是按钮" onclick="alert('刘炎增傻逼')"><br>
            
                        <select>
                                <option>选择国家</option>
                                <option selected="selected">中国</option>
                                <option>美国</option>
                                
                                <!-- selected="selected" 默认选择  但可修改 -->
                        </select><br>
                    说说<textarea rows=" 23" cols="21"></textarea>
                 
             </form>

</body>
</html>
原文地址:https://www.cnblogs.com/20gg-com/p/6009958.html