<!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>Form</title> </head> <body> <form action="http://www.baidu.com"> <table> <tr> <td><label for="username">姓名:</label></td> <td><input type="text" name="username" value="请输入用户名" id="username"></td> </tr> <tr> <td><label for="pwd">密码:</label></td> <td><input type="password" name="pwd" id="pwd"></td> </tr> <tr> <td><label for="male">男</label><input type="radio" name="sex" id="male" value="male" checked="checked"> </td> <td><label for="female">女</label><input type="radio" name="sex" value="female" id="female"></td> </tr> <tr> <td><label for="billibard">台球</label><input type="checkbox" name="hobby" id="billibard" value="billibard"></td> <td><label for="basketball">篮球</label><input type="checkbox" name="hobby" id="basketball" value="basketball"></td> </tr> <tr> <td><input type="submit"></td> <td><input type="reset"></td> </tr> </table> </form> </body> </html>