標籤:
<html>
<!--這是頭部--> <head>
<title>第一個網頁</title> </head> <!--這是身體--> <body> 網頁中的內容 </body></html><!--這是頭部--> :這是注釋。
- <p>表示段落</p>;<h#>標題字型</h#>#=1,2,3,4,5,6;<br/>:表示換行;<hr/>:添加橫線;
- 符號實體: :空格;©:copyright著作權;®:著作權等;
- 超連結:<a href="mailto:[email protected]" target="_blank">搜狐</a>;target="_blank"表示在新頁面開啟,預設為"self"表示替換當前頁面。
- 插入圖片:<img src="#" width="" height="" border="" align="top middle bottom"/>aign:表示文字與圖片對齊
- 表格:<table border="" width="" height="" align="">
<tr align=""><th></th></tr> <tr align=""><td></td></tr>
<tr><td></td></tr>
</table> rowspan:表示合并行;colspan:表示合并列
- 列表:無序列表、有序列表、自訂欄表
- 無序列表:<ul type="#">#=disc,circle,square
<li></li> <li></li> <li></li>
</ul>
- 有序列表:<ol type="#" start="">#=1,a,A,i,I
<li></li>
<li></li> </ol>
<dt>定義列表中的項目</dt>
<dd>描述列表中的項目</dd> </dl>
- 架構:不是寫在<body>裡面
- <frameset frameborder="" cols="50%"按照列的百分比分割 rows=""按照行的百分比分割>
<frame src="" noresize/> </frameset>
<form action="#" method="post/get">#表示指定把請求提交給那個頁面;
<input type="#">#=text,password,radio(單選框),checkbox(複選框),image(需設定src),submit,reset,hidden(隱藏 框:既可以提交資料,而不影響介面),file。<textarea></textarea>,(下拉框)<select><option></option></select>
</form>
- 背景色彩和文字色彩:<body link="red" text="blue">
- 文字分區:<div></div>
- 預格式化文本:<pre></pre>
完成菜譜和成績單的表格案列,架構插入案例和郵箱綜合案列
Html學習筆記整理