html笔记

来源:互联网 发布:如何制作淘宝首页模板 编辑:程序博客网 时间:2024/06/06 11:44
HTML
(Hyper Text Markup language)
不区分大小写,尽量使用小写标签
繁体字的编码集:big
中文编码集:jbk,jb2312
所有符:utf-8
默认编码集:iso—885981:不支持中文
页面跳转:
1.refresh;
<meta http-equiv="refresh"content="5;url=http//www.baidu.com"/>


2.<script type="text/javascript" >
setTimeout("tiaozhuan()",2000)
function tiaozhuan(){
window.location.href="file:///C:/Users/ASUS/Desktop/Untitl
ed-1.html";
}
   </script>


<body>标签:
注释符号:<- ->
字符实体:
&:"&amp","&#38"
空格:"&nbsp"


<a>标签:
target
_blank;
_self;
_parent;
_top;


行的合并:
跨行:rowpand
跨列:coslpand




<form>标签
name,action,method(get,post)
 get:url?后面加上传送字符串、传送资料会显示在浏览器的地址栏


、会有安全问题、传送资料不能太大;
post:传送的信息作为httprequest的一部分,资料不会显示在浏览器


上,传送文字节量可以很大;
要求:安全性高、大段文本、file表单域时,用post传送方式,其他的


get、post都可以
1、文本框:<input type="text" id="wbk" name="wbk" value="文


本框" readonly disabled/>
2、密码框:<input type="password" id="mm" name="mm" value="


密码框" readonly disabled/>
3、单选按钮:<input type="radio" id="radio1" name="hobby" 


value="nan" checked/>
4、复选框:
5、隐藏域:<input type="hidden" id="h1" name="h1" value="">
6、文本域:


css学习
Cascading Style Sheet(层叠样式表)
优点:
css选择器
标签选择器
类型选择器:.开头,class=;
id选择器:#开头,id=;


css引用样式
定义内部样式块对象
内部定义
原创粉丝点击