简单的表单编辑:
<!DOCTYPE HTML> <html lang=‘en‘> <head> <meta chaset=‘utf-8‘/> <title>from练习</title> </head> <body> <from> <table width=‘500px‘ height=‘700px‘ border=‘2‘ align=‘center‘> <tr> <td>用户名:<input type=‘text‘ name=‘uname‘ placeholder=‘请输入用户名‘ size=‘20‘/><br/></td> </tr> <tr> <td>密码:<input type=‘password‘ name=‘pass‘ maxlength=‘16‘/><br/></td> </tr> <tr> <td>性别:<input type=‘radio‘name=‘sex‘ value=‘m‘ checked/>男<input type=‘radio‘ name=‘sex‘ value=‘w‘>女<br/></td> </tr> <tr> <td>爱好:<input type=‘checkbox‘ checked/>足球<input type=‘checkbox‘/>篮球 <input type=‘checkbox‘/>排球<input type=‘checkbox‘/>台球<br/></td> </tr> <tr> <td>籍贯:<select name=‘city‘> <option selected>北京</option> <option>上海</option> <option>广州</option> <option>深圳</option> <option disabled>天津</option> </select><br/> </td> </tr> <tr> <td>文本域:<textarea style=‘resize:none‘ rows=‘5px‘ cols=‘60px‘></textarea><br/></td> </tr> <tr> <td> <input type=‘submit‘ value=‘提交‘/> <input type=‘reset‘ value=‘重置‘/><br/></td> </tr> <tr> <td>音乐播放 <audio src=‘./1.mp3‘ controls></audio><br/> </td> </tr> <tr> <td>视频播放: <video src=‘./1.mp4‘ controls></video><br/> </td> </tr> </table> </from> </body> </html>
Python学习交流、资源共享群 QQ:563626388