摘要:<!doctype html><html><head><meta charset="UTF-8"><title>HTML常用標簽及屬性</title><style>font-weight:bold; //字體加粗font-family:楷體; //改變字體類型text-align:left ce
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML常用標簽及屬性</title>
<style>
font-weight:bold; //字體加粗
font-family:楷體; //改變字體類型
text-align:left center raght;//文本 靠左 居中 靠右
line-height:10px; //行高
text-dcoration:none; //鏈接取消下劃線
text-dcoration:underline; //鏈接顯示下劃線
list-style:none; //去除ul li前的點
border:1px solid #ccc; //邊框
</style>
</head>
<body>
<em>斜體-加粗</em>
<strong>正常加粗</strong>
<i>斜體</i>
<b>加粗</b>
<pre>預格式文本</pre>
<h1>標題</h1>
<p>段落</p>
<a>鏈接</a>
<span>常用于文本<span>
<sub>下標</sub>
<sup>上標<sup>
<!--錨點-->
<a href="top"></a>
<a href="#" id="top">返回頂部</a>
<!--有序列表-->
<ol>
<li>1</li>
<li>2</li>
<li>3</li>
</ol>
<!--無序列表-->
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<!--自定義列表-->
<dl>
<dt>標題</dt>
<dd>1</dd>
<dd>2</dd>
<dd>3</dd>
</dl>
<!--表單-->
<form action="1.html" method="post">
文本:<input type="text" name="name">
密碼:<input type="password" name="name" placeholder="請輸入密碼">
單選:<input type="radio" name="name">
多選:<input type="checkbox" name="name">
提交:<input type="submit" name="name">
重置:<input type="reset" name=""name>
<button>按鍵</button>
</form>
<table>
<tr>
<th>ID</th>
<th>name</th>
<th>age</th>
</tr>
<tr>
<td>1</td>
<td>peter</td>
<td>18</td>
</tr>
<tr>
<td>1</td>
<td>peter</td>
<td>18</td>
</tr>
</table>
</body>
</html>
批改老師:天蓬老師批改時間:2019-06-29 13:25:19
老師總結:以后寫表格的時候, 盡可能加上tbody, 就算你不加, 瀏覽器也會自動幫你加上的, 還不如手工加上以防止js操作表格時出錯