標籤:
網頁分三部分:
HTML,HTM: 超文字標記語言 (HTML)
CSS : 樣式表
javascript: 指令碼
<body bgcolor="" background="" text="#000099">
字型標籤
<font color="#CCCCCC" face="Verdana, Geneva, sans-serif" size="+5"></font>
<b></b><i></i> <u></u><center></center> <br><br/>
內容標籤
<div></div><span></span>
<hi><h1><h6><h6>標題標籤 加粗換行
<ol type="a"> 有序排列
<li></li>
<li></li>
</ol>
<ul type="square"> 無序排列
<li></li>
<li></li>
</ul>
<p><a href="http://www.sina.com.cn" target(開啟檔案)="_blank">超連結入口</a> 跳轉頁面
<a href="">超文本</a> 下載文檔
錨點:
<a href="#md1">找1</a>
<a href="#md2">找2</a>
<a name="md1">內容1</a>
<a name="md2">內容2</a>
<img src="" width="" height="" alt="圖片不顯示後,顯示的文字"/>
表格
<table width="100%" border="0" cellspacing="2" bgcolor="#CC0099">
<tr>
<td width="20%" rowspan="2" bgcolor="#990033"> </td>
<td width="20%" bgcolor="#990033"> </td>
<td width="20%" bgcolor="#990033"> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#990033"> </td>
</tr>
<tr>
<td bgcolor="#990033"> </td>
<td bgcolor="#990033"> </td>
<td bgcolor="#990033"> </td>
</tr>
</table>
表單
<form name="zhuce" method="get" action="www.baidu.com"/(一般來說加“/”)>
method一般為post或get;
action 提交到那個頁面(基本是自己做的)來處理
1文本輸入
<input type="text" name="" value=""> 單行文本輸入框
<input type="password" name="" value=""> 密碼框
<textarea rows="5" value="" name=""></textarea> 文本域 多行文本輸入
<input type="hidden" name="" value=""> 隱藏欄位
2按鈕
<input type="submit" name="" value="提交"> 把輸的文字提交到另一個頁面
<input type="reset" name="" value="重設">
<input type="button" name="" value="普通" >
<input type="image" value="圖片" name="" width="50" height="50">
3選擇輸入
男<input type="radio" name="sex" value="true" checked="checked"(預設值) > 單選 name相同為一組
女<input type="radio" name="sex" value="false" >
<input type="checkbox" name="" value="" checked="checked" > 多選
<input type="checkbox" name="" value="" >
<input type="checkbox" name="" value="" >
<input type="file" name="" value="" >瀏覽 選擇檔案 上傳檔案
<select name="" multiple="multiple"(多選)>
<option value="01" selected="selected">張三</option>
<option value="02">李四</option>
</select>
</form>
</body>
CSS 樣式表
<title>CSS</title>
<style type="text/css">
*
{
margin:0px;
padding:opx;
}
ul
{
list-style-type:none;
/*list-style-position:inside; */
}
ul li
{
/*display:inline;*/
float:left;
margin:opx 10px 0px 10px;(上右下左 水木火土金)
}
.dd
{
width:100px;
height:100px;
border:5px solid red;
background-color:yellow;
margin:5px;
float:left;
}
div
{
border:1px dotted red;
height:100px;
backgroud-color:yellow;
width:500px;
}
#d0
{
width:600px;
height:50px;
background-color:red;
}
#d2
{
background-color:green;
height:200px;
width:700px;
}
</style>
</head>
<ul>
<li>首頁</li>
<li>公司介紹</li>
<li>新聞活動</li>
<li>產品介紹</li>
<li>客服介紹</li>
<li>會員專區</li>
<li>聯絡我們</li>
</ul>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div id="d1"></div>
<div id="d2"></div>
</body>
</html>
HTML 大結!