H5标准: <!DOCTYPE html>
附录:一些例子!
1.iframe用法例子:
<html> <head> <meta charset="utf-8" /> <title>iframe框架</title> </head> <body> <a href="http://www.163.com" target="change" >去网易</a><br /> <iframe src="http://www.baidu.com" width="500" height="300" frameborder="0" scrolling="no" name="change" ></iframe> </body> </html>
2.frameset分框架
<html> <head> <title>frameset</title> <meta charset="utf-8" /> </head> <frameset rows="200,*" border="10" bordercolor="yellow" frameborder="1"> <frame src="http://www.baidu.com" /> <frameset cols="20%,*"> <frame src="http://www.163.com" /> <frame src="http://www.sohu.com" /> </frameset> </frameset> <noframes> <body>不支持的浏览器显示这里的内容</body> </noframes> </html>
3.input用法例子
<html> <head> <title>输入框</title> <meta charset="utf-8" /> </head> <body> <input type="password" size="10" placeholder="请输入用户名" maxlength="6" /><br /> <input type="submit" value="立即注册" /> </body> </html>
4.form表单<重要>例子
<!DOCTYPE html> <html> <head> <title>表单</title> <meta charset="utf-8" /> <meta http-equiv="refresh" content="4;url=http://www.baidu.com" /> </head> <body> <form action="" method="get" > <input type="hidden" name="id" value="34" /> 用户名: <input type="text" placeholder="请输入用户名" name="username" /><br /> 密码: <input type="password" name="password" /><br /> 性别: <input type="radio" name="sex" value="0" id="nan" /> <label for="nan" >男</label> <input type="radio" name="sex" value="1" checked id="nv" /> <label for="nv">女</label><br /> 爱好: <input type="checkbox" name="love[]" value="sing" />唱歌 <input type="checkbox" name="love[]" value="dance" />跳舞 <input type="checkbox" name="love[]" value="draw" />画画 <input type="checkbox" name="love[]" value="dadoudou" checked />打豆豆<br /> 头像: <input type="file" name="file" /><br /> 籍贯: <select name="jg" size="3" multiple> <option value="beijing">北京</option> <option value="shanxi">陕西</option> <option value="hebei">河北</option> <option value="henan">河南</option> <option value="shandong" selected>山东</option> </select><br /> 备注: <textarea cols="20" rows="10"></textarea><br /> <input type="submit" value="立即注册" /><br /> <input type="button" value="按钮" /><br /> <button>提交</button> </form> </body> </html>
希望能和大家一块交流!
