在表单里经常会用到很多部件
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>try</title> </head> <body> button <input type="button"> <br> checkbox <input type="checkbox"> <br> color <input type="color"> <br> date <input type="date"> <br> datetime <input type="datetime"> <br> datetime-local <input type="datetime-local"> <br> email <input type="email"> <br> file <input type="file"> <br> hidden <input type="hidden"> <br> image <input type="image"> <br> month <input type="month"> <br> month <input type="number"> <br> password <input type="password"> <br> radio <input type="radio"> <br> range <input type="range"> <br> search <input type="search"> <br> sublime <input type="sublime"> <br> tel <input type="tel"> <br> text <input type="text"> <br> time <input type="time"> <br> url <input type="url"> <br> week<input type="week"> <br> </body> </html>
效果: