一、HyperText Markup Language 內容,html是弱代碼語言,代碼編寫不嚴謹 1、超鏈接 <a href="#">超級鏈接(anchor)</a> 寫超鏈接的href地址的時,要註意是否有寫相應的解析協議,沒有設置協議時,按照預設的本地文件的文本協議 https,http,郵件 ...
一、HyperText Markup Language 內容,html是弱代碼語言,代碼編寫不嚴謹
1、超鏈接 <a href="#">超級鏈接(anchor)</a>
寫超鏈接的href地址的時,要註意是否有寫相應的解析協議,沒有設置協議時,按照預設的本地文件的文本協議
https,http,郵件,自定義(迅雷)等;
2、其他標簽
<address>地址(address)</address>
<b>粗體(bold)</b>
<big>放大(big)</big>
<blockquote> 引用塊(blockquote)</blockquote>
<br/> 換行(break)
<center> 居中(center)</center>
<cite>引用(cite)</cite>
<code>代碼(code)</code>
<del> 刪除(delete)</del>
<dfn> 定義(definition)</dfn>
<div> 區塊(division)</div>
<em> 強調(emphasize)</em>
<hr/> 橫線(horizontal)
<i> 斜體(italic)</i> <u>下劃線(italic)</u>
<p>p 段落(paragraph)</p>
<pre>按預定格式顯示的文本(Preformatted)</pre>
<q>引用(quote)</q>
<span>文本段(span)</span>
<strong>重點強調(strong emphasized)</strong>
· <sub>下標(subscript)</sub>
<sup>上標(superscript)</sup> <textarea>多行文本輸入區(textarea)</textarea> <tt>電傳打字機(teletype)(等寬字體)</tt> <var>可變文本(variable)</var> 3、標題標簽
<h1>標題1</h1>
<h2>標題2</h2>
<h3>標題3</h3>
<h4>標題4</h4>
<h5>標題5</h5>
<h6>標題6</h6>
4、列表標簽 ——
[1]、dl 字典列表(dictionary list)
<dl>
<dt>dt 字典標題(dictionary title)</dt>
<dd>dd 字典數據(dictionary data)</dd>
<dt>dt 字典標題(dictionary title)</dt>
<dd>dd 字典數據(dictionary data)</dd>
</dl>
[2]、ol 有序列表(order list)
<ol>
<li>li 列表項(list item)</li>
<li>li 列表項(list item)</li>
</ol>
[3]、ul 無序列表(unordered list)
<ul>
<li>列表項(list item)</li>
<li> 列表項(list item)</li>
</ul>
5、表單標簽
<form action="#" method="post">表單(form)</form>
<img src="#" alt="圖片" />圖片(image)
<input type="text" name="name" value="" />input,type='text' 文本輸入框(text)
<input type="radio" name="name" value="" />input,type='radio' 單選框(radio)
<input type="checkbox" name="name" value="" />input,type='checkbox' 覆選框(checkbox)
<input type="file" name="name" value="" />input,type='file' 文件選擇框(file)
<input type="hidden" name="name" value="" />input,type='hidden' 隱藏域(hidden)
<input type="image" name="name" value="" />input,type='image' 圖片按鈕(image)
<input type="password" name="name" value="" />input,type='password' 密碼輸入框(password)
<input type="reset" name="name" value="reset" />input,type='reset' 重置按鈕(reset)
<input type="submit" name="name" value="submit" />input,type='submit' 提交按鈕(submit)
<input type="button" name="name" value="button" />input,type='button' 按鈕
6、下拉列表框
select 選擇列表(select)
<select>
<option value="value">option 選擇項(option)</option>
</select>
7、table 表格(table)
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>td 表格數據(table data)</td>
<td>td 表格數據(table data)</td>
</tr>
<tr>
<td>td 表格數據(table data)</td>
<td>td 表格數據(table data)</td>
</tr>
</table>