HTML 学习

面页跳转

<meta http-equiv="Refresh" content="0;URL=PDA.CAB" />

<p></p>是一个段落
<br />只是回车换行,它们是两行和两段的区别

只有〈H1〉到〈H6〉

"/"表示网站根目录
"../"表示父目录
"http://www.cnblogs.com/"表示父目录的父目录
"./"表示当前目录,可以不写

在新的窗口打开

<a target="_blank" href="http://www.baidu.com" />众里寻她千百度</a>

国内的网站大多在新窗口打开,国外的是在当前窗口打开

如果没有加上target="_blank",按住Ctrl也可以在新窗口打开

图片要加载完了,浏览器才知道图片的大小
所以一般都要给图片指定大小(图片没有加载完成,也会把位置占满)

 

无序列表和有充列表
ul unordered list
ol ordered list
li list (可能是默认有序吧)

radio 相同name属性为一组

file:使用file,刚form的enctype必须设置为nultipart/form-data、
method/属性为post(*)

<select>
<select size="4" multiple="multiple">
 <option value="1">北京</option>
 <option value="2">上海</option>
 <option value="3" selected="selected">广州</option>
 <option value="4" selected="selected">深圳</option>
</select>

<select size="10" multiple="multiple">
 <optgroup label="北京">
 <option value="1">北京</option>
 </optgroup>
 <optgroup label="上海">
 <option value="2">上海</option>
 </optgroup>
 <optgroup label="广东">
 <option value="3" selected="selected">广州</option>
 <option value="4" selected="selected">深圳</option>
 </optgroup>
</select>

 

label 与内容同步

<label for="name">姓名:</label><input type="text" id="name" name="name"></input>
<br />
<label for="is">是否:</label><input type="checkbox" id="is" name="name"></input>

 

多行文本框

<textarea cols="100" rows="10">aaaa</textarea>

fieldset分组

<fieldset width="50">
<legend>爱好</legend>
<input type="checkbox" id="read"></input><label for="read">看书</label>
<input type="checkbox" id="online"></input><label for="online">上网</label>
<input type="checkbox" id="run"></input><label for="run">跑步</label>
</fieldset>

 

层叠样式表优先级

<div id="top">
<div class="ct-zh-banner">
<link type="text/css" rel="Stylesheet" href="css.css" />

 

搜索关键字

<meta name="Keywords" content="上网助手,nethelp">

在标题显示图标

<link rel="Shortcut Icon" href="11.ico">

 

 

posted @ 2013-05-11 00:10  cppwen  阅读(127)  评论(0编辑  收藏  举报