- 爱易网页
-
HTML教程
- 惯用html元素总结
日期:2014-05-16 浏览次数:20656 次
常用html元素总结
1.基本结构:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
</body>
</html>
2.文档类型:
HTML 4.01:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML5:<!DOCTYPE html>
XHTML 1.0:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3.头部:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src=""></script>
<link rel="stylesheet" href="" type="text/css">
<script language="javascript">var u="__URL__";var a="__APP__";</script>
<script language="javascript" src="__PUBLIC__/js/jquery-1.8.1.min.js"></script>
<script language="javascript"></script>
<style type="text/css"></style>
<base href="" />
<base target="_blank" />
<meta name="description" content=",," />
<meta name="keywords" content=",," />
4.主体:
<body onload="">
<div id="" class=""></div>
<div style="clear:both;">
<form id="" action="" method="post"></form>
<form id="" action="" method="get"></form>
<form id="" action="" method="get">
<form id="" action="" method="post" enctype="multipart/form-data">
<input id="username" name="username" class="" type="text" placeholder="用户名"></input>
<input id="password" name="password" class="" type="password" placeholder="密码"></input>
<input id="login_button" class="button" type="button" value="登录" onclick=""></input>
<input id="register_button" class="button" type="button" value="注册" onclick="location.href=''">
<input id="" name="" class="" type="text"></input>
<input id="" name="" class="" type="button"></input>
<input id="" name="" class="" type="radio"></input>
<input id="" name="" class="" type="checkbox"></input>
<input id="" name="" class="" type="text" onchange="document.getElementById('').value=this.value"></input>
<input id="" name="" class="" type="file"></input>
<input id="" name="" class="" type="hidden"></input>
<input id="" name="" class="" type="submit"></input>
<input id="" name="" class="" type="image&quo
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。