HTML 表单input基本使用


DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Documenttitle>
head>

<body>
    
    
    文本 <input type="text" placeholder="请输入内容">
    <br>
    <br>

    
    密码 <input type="password" placeholder="请输入密码">
    <br>
    <br>

    
    
    
    性别:<input type="radio" name="xyt" checked><input type="radio" name="xyt"><br>
    <br>

    
    xyt是帅小伙吗 <input type="checkbox" checked><input type="checkbox" checked>是啊
                 <input type="checkbox" checked>是啊啊
    <br>
    <br>

    
    
    上传文件 <input type="file" multiple>
    <br>
    <br>

    
    提交 <input type="submit">
    <br>
    <br>

    
    重置 <input type="reset">
    <br>
    <br>

    
    普通按钮 默认无功能 之后配合js添加功能 <input type="button">

body>
html>