基本文件:
<
!doctype
html
>
<
html
>
<
head
>
<
title
>
文件標題
title
>
head
>
<
body
>
可見文字...
body
>
html
>
基本標籤:
<
h1>
最大的標題
h1>
<
h2>
. . .
h2>
<
h3>
. . .
h3>
<
h4>
. . .
h4>
<
h5>
. . .
h5>
<
h6>
最小的標題
h6>
<
p>
這是乙個段落。
p>
<
br>
(換行)
<
hr>
(水平線)
文字格式化:
<
b>
粗體文字
b>
<
code
>
計算機**
code
>
<
em>
強調文字
em>
<
i>
斜體文字
i>
<
kbd>
鍵盤輸入
kbd>
<
pre>
預格式化文字
pre>
<
small
>
更小的文字
small
>
<
strong
>
重要的文字
strong
>
<
abbr
>
(縮寫)
<
address
>
(聯絡資訊)
<
bdo>
(文字方向)
<
blockquote
>
(從另乙個源引用的部分)
<
cite
>
(工作的名稱)
<
del>
(刪除的文字)
<
ins>
(插入的文字)
<
sub>
(下標文字)
<
sup>
(上標文字)
<
ahref="
">
鏈結文字
a>
<
ahref="
">
<
imgsrc="
url"
alt=
"替換文字
">
a>
<
ahref="
mailto:webmaster@example.com
">
傳送e-mail
a>
書籤:="
tips
">
提示部分
a>
<
ahref="
#tips
">
跳到提示部分
a>
: <
imgsrc="
url"
alt=
"替換文字
"height="
42"width="
42">
樣式/區塊:
<
style
type="
text/css
">h1p
style
>
<
div>
文件中的塊級元素
div>
<
span
>
文件中的內聯元素
span
>
無序列表:
<
ul>
<
li>
專案li
>
<
li>
專案li
> ul
>
有序列表:
<
ol>
<
li>
第一項li
>
<
li>
第二項li
>
ol>
自定義列表:
<
dl>
<
dt>
專案 1
dt>
<
dd>
描述專案 1
dd>
<
dt>
專案 2
dt>
<
dd>
描述專案 2
dd> dl
>
**:<
table
border="
1">
<
tr>
<
th>
**標題
th>
<
th>
**標題
th>
tr>
<
tr>
<
td>
**資料
td>
<
td>
**資料
td>
tr>
table
>
框架:
<
iframe
src=
"demo_iframe.htm
">
iframe
>
表單:<
form
action="
demo_form.php
"method="
post/get
">
<
input
type="
text
"name="
"size="
40"maxlength="
50">
<
input
type="
password
">
<
input
type="
checkbox
"checked="
checked
">
<
input
type="
radio
"checked="
checked
">
<
input
type="
submit
"value="
send
">
<
input
type="
reset
">
<
input
type="
hidden
">
<
select
>
<
option
>
蘋果option
>
<
option
selected="
selected
">
香蕉option
>
<
option
>
櫻桃option
>
select
>
<
textarea
name="
comment
"rows="
60"cols="
20">
textarea
>
form
>
實體:<
等同於
< &
gt; 等同於
>
HTML中meta標籤作用
源資料描述資料的資料,描述html文件的資訊 設定字元編碼。以鍵值對的方式設定字元編碼其中content type是鍵,text html charset gb2312是值,html5。refresh指的是設定refresh屬性,3秒後重新整理的內容指向三秒後跳轉到 keywords是寫給搜尋引擎的...
HTML中meta標籤的作用
首先,meta標籤是乙個自結束標籤,其格式為,下面介紹meta標籤的作用 1.規定字符集 html規定解碼字符集為utf 8,此句為了防止亂碼,utf 8字符集支援 地球上所有的文字,而中文系統預設編碼是gb2312,產生亂碼的根本原因是編碼和解碼採用的字符集不同。2.設定網頁關鍵字 其中name屬...
HTML文件中meta標籤的作用
html 文件中meta 標籤的作用 訊息來源 blog.csdn.net meta 是用來在 html 文件中模擬 通訊協定的響應頭報文。meta 標籤用於網頁的 head 與 head 中,meta 標籤的用處很多。meta 的內容有兩種 name 和 http equiv name 內容主要用...