<HTML>
<HEAD>
<title>, <base>, <link>, <isindex>, <meta>
</HEAD>
<BODY>
HTML 文件的正文写在这里... ...
</BODY>
</HTML>
可在 HTML 文件中设置 MIME 字符集信息。
您在浏览主页时,最好自己在浏览器的选项菜单内选择相应的语言(language encoding)。
但是如果 HTML 文件里写明了设置,浏览器就会自动设置语言选项。
尤其是主页里用到了字符实体(entities),则该主页就应该写明字符集信息。
否则,您在浏览该主页时,若未正确设置语言选项,显示将可能混乱。
<------Margin------->
<------link basic------->
这是一个链接的例子。点一下带下划线的文字!
<------link name------->
下一个链接点
<------link name 2------->
跳转到另一个页面的某个地方。
<------Target Windows------->
<hr>
<hr size=10>
<hr width=50>
<hr width=50%>
<hr width=50% align=left>
<hr width=50% align=right>
<hr noshade>
<font size=7>今天天气真好!</font> 今天天气真好!
<font size=6>今天天气真好!</font> 今天天气真好!
<font size=5>今天天气真好!</font> 今天天气真好!
<font size=4>今天天气真好!</font> 今天天气真好!
<font size=3>今天天气真好!</font> 今天天气真好!
<font size=2>今天天气真好!</font> 今天天气真好!
<font size=1>今天天气真好!</font> 今天天气真好!
<b>今天天气真好!</b> 今天天气真好!
<i>今天天气真好!</i> 今天天气真好!
<u>今天天气真好!</u> 今天天气真好!
<tt>今天天气真好!</tt> 今天天气真好!
<sup>今天天气真好!</sup> 今天天气真好!
<sub>今天天气真好!</sub> 今天天气真好!
<s>今天天气真好!</s> 今天天气真好!
<strike>今天天气真好!</strike> 今天天气真好!
<em>今天天气真好!</em> 今天天气真好!
<strong>今天天气真好!</strong> 今天天气真好!
<code>今天天气真好!</code> 今天天气真好!
<samp>今天天气真好!</samp> 今天天气真好!
<kbd>今天天气真好!</kbd> 今天天气真好!
<var>今天天气真好!</var> 今天天气真好!
<dfn>今天天气真好!</dfn> 今天天气真好!
<cite>今天天气真好!</cite> 今天天气真好!
<small>今天天气真好!</small> 今天天气真好!
<big>今天天气真好!</big> 今天天气真好!
<i><font size=5>
<b>今天</b> 天气<font size=6> 真好!</font>
</font></i>
今天 天气 真好!
<font color=ffffff>White</font> &
<font color=white>White</font> & White
<font face="Arial, Helvetica"> Hellow World!</font>
Hellow World!
<------ &keyword;------->
& &
< <
> >
" "
---------------------------------------------------
你好吗?<p>很好。
你好吗?
很好。
<nobr>
请改变您浏览器窗口的宽度, 使之小于这一行的宽度, 看看这个标记的作用!
</nobr>
请改变您浏览器窗口的宽度,使之小于这一行的宽度,看看这个标记的作用!
<hn align=#>...</hn>
<p align=#>...</p> #=left, center, right
<h3 align=center>Hello<\h3>
<h3 align=right>Hello<\h3>
<center>...</center>
<center>Hello</center>
Hello
<div align=left> ... </div>
<div align=left>
Can you feel happiness without unpleasant? <br>
Please show me your smile.
</div>
Can you feel happiness without unpleasant?
Please show me your smile.
<div align=center> ... </div>
Can you feel happiness without unpleasant?
Please show me your smile.
<div align=right> ... </div>
Can you feel happiness without unpleasant?
Please show me your smile.
<ul>
<li>Today
<li>Tommorow
</ul>
<ol>
<li>Today
<li>Tommorow
</ol>
<dl>
<dt>Today
<dd>Today is yesterday.
<dt>Tomorrow
<dd>Tomorrow is today.
</dl>
Today Today will be yesterday.
Next Tomorrow will be today.
定制表中的标记 <li type=#> #=disk, circle, square
<ul>
<li type=disc>ONE
<li type=circle>TWO
<li type=square>THREE
</ul>
<ol><li type=A>ONE-ONE
<li>ONE-TWO</ol>
<ol><li type=a>ONE-ONE
<li>ONE-TWO</ol>
<ol><li type=I>ONE-ONE
<li>ONE-TWO</ol>
<ol><li type=i>ONE-ONE
<li>ONE-TWO</ol>
<ol><li type=1>ONE-ONE
<li>ONE-TWO</ol>
<ol start=5>
<li type=A>ONE-ONE
<li>ONE-TWO
<ol start=10>
<li>TWO-ONE
<li type=i>TWO-TWO
</ol></ol>
Fax
Air Mail
<listing>...</listing>
<listing>
Please use your card.
VISA Master
<b>Here is an order form.</b>
<ul><li>Fax
<li>Air Mail</ul>
</listing>
Please use your card.
VISA Master
Here is order form.
<xmp>...</xmp>
<xmp>
Please use your card.
VISA Master
<b>Here is an order form.</b>
<ul><li>Fax
<li>Air Mail</ul>
</xmp>
Please use your card.
VISA Master
<b>Here is order form.</b>
<ul><li>Fax
<li>Air Mail</ul>
YESTERDAY <spacer type="horizontal" size=50> TODAY
<spacer type="vertical" size=50> TOMORROW
YESTERDAY TODAY TOMORROW
<spacer type="block" width=# height=# align=##>
#=空白的尺寸
##=top, middle, bottom, left, right
<spacer type="block" width=150 height=50 align=left>
YESTERDAY<br> TODAY<br> TOMORROW
YESTERDAY
TODAY
TOMORROW
<multicol cols=#> ... </multicol> #=列的数目
<multicol cols=2> text text text... </multicol>
例子
<multicol gutter=#> ... </multicol> #=列间的空白
<multicol cols=2 gutter=100> text text text... </multicol>
例子
<multicol width=#> ... </multicol> #=列的宽度
<multicol cols=2 width=400> text text text... </multicol>
例子
其它
Her Song:
<blockquote>
When I was young, I listened to the radio
waiting for my favorite songs....
</blockquote>
Her Song:
When I was young, I listened to the radio waiting for my favorite songs....
<BLINK> 闪烁!闪烁! </BLINK>
闪烁!闪烁!
<------img source------->
<------img description------->
My Face!
My Face!
My Face!
<------img align=left------->
My Face!
It is always
smiling.
Hahaha....
<------img align=right------->
My Face!
It is always
smiling.
Hahaha....
<------br clear------->
My Face!
It is always
smiling.
Hahaha....
<------vspace hspace------->
My Face!
It is always
smiling.
Hahaha....
<------border------->
<------Embed------->
本标记可以用来在主页中嵌入多媒体文本,如:
电影(movie), 声音(sound), 虚拟现实语言(vrml)... ...
体会 <embed> 标记,您需要把 plugin 安装完备。
请注意:embed attributes are different between each plugins.
<------bgsound------->
<bgsound src="sound.wav" loop=3>
<------Basic------->
用 url.avi 这一 AVI(Video for MS-WINDOWS) 文件来播放视频;
用 url.gif 这一 GIF 图象作为视频的封面,即:在浏览器
尚未完全读入 AVI 文件时,先在 AVI 播放区域显示该图象。
<img src="sample-s.gif" dynsrc="/SAMPLE-S.AVI">
<------start------->
缺省值是 #=fileopen,即在链接到含本标记的页面(如本页)时开始播放 AVI。
mouseover 是指您把鼠标移到 AVI 播放区域之上时才开始播放 AVI。
也可以两者同时设置:<img start=fileopen,mouseover>
另外,用鼠标在 AVI 播放区域点击一下,也将令浏览器开始播放该 AVI。
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" start=mouseover>
<------Control------->
用来在视频窗口下附加 MS-WINDOWS 的 AVI 播放控制条。
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" controls>
<------loop------->
<loop=infinite> 将循环播放不止。
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI" loop=3>
<------Delay------->
<img src="SAMPLE-S.GIF" dynsrc="SAMPLE-S.AVI"
loop=3 loopdelay=250>
<------Form Basic------->
*=GET, POST
<------Input Basic------->
*=text, password, checkbox, radio, image, hidden, submit, reset
**=Symbolic Name for CGI script
<------Text & Password------->*=text, password
<form action=/cgi-bin/post-query method=POST>
您的姓名:
<input type=text name=姓名><br>
您的主页的网址:
<input type=text name=网址 value=http://><br>
密码:
<input type=password name=密码><br>
<input type=submit value="发送"><input type=reset value="重设">
</form>
<------Text & Password -- Size, Max ------->
<form action=/cgi-bin/post-query method=POST>
<input type=text name=a01 size=40><br>
<input type=text name=a02 maxlength=5><br>
<input type=submit><input type=reset>
</form>
<------Checkbox------->
<form action=/cgi-bin/post-query method=POST>
<input type=checkbox name=水果1>
Banana<p>
<input type=checkbox name=水果2 checked>
Apple<p>
<input type=checkbox name=水果3 value=橘子>
Orange<p>
<input type=submit><input type=reset>
</form>
<------Checkbox------->
<form action=/cgi-bin/post-query method=POST>
<input type=radio name=水果>
Banana<p>
<input type=radio name=水果 checked>
Apple<p>
<input type=radio name=水果 value=橘子>
Orange<p>
<input type=submit><input type=reset>
</form>
在下面选则一个系数后,在图象上点一下,就知道什么是图象坐标了!
<form action=/cgi-bin/post-query method=POST>
<input type=image name=face src=f.gif><p>
<input type=radio name=zoom value=2 checked>x2
<input type=radio name=zoom value=4>x4
<input type=radio name=zoom value=6>x6<p>
<input type=reset>
</form>
<form action=/cgi-bin/post-query method=POST>
<input type=hidden name=add value=hoge@hoge.jp>
Here is a hidden element. <p>
<input type=submit><input type=reset>
</form>
<------Basic------->
<------select & option------->
<form action=/cgi-bin/post-query method=POST>
<select name=fruits>
<option>Banana
<option selected>Apple
<option value=My_Favorite>Orange
</select><p>
<input type=submit><input type=reset>
</form>
<------size & multiple------->
<form action=/cgi-bin/post-query method=POST>
<select name=fruits size=3>
<option>Banana
<option selected>Apple
<option value=My_Favorite>Orange
<option>Peach
</select><p>
<input type=submit><input type=reset>
</form>
<------multiple------->
注意,是用 Ctrl 键配合鼠标实现多选。
(和 MS-WINDOWS 的 File Manager 一样)
<form action=/cgi-bin/post-query method=POST>
<select name=fruits size=3 multiple>
<option selected>Banana
<option selected>Apple
<option value=My_Favorite>Orange
<option selected>Peach
</select><p>
<input type=submit><input type=reset>
</form>
<form action=/cgi-bin/post-query method=POST>
<textarea name=comment rows=5 cols=60>
</textarea>
<P>
<input type=submit><input type=reset>
</form>
<------Word Wrapping Off------->
<------Word Wrapping Soft------->
“软换行”,好象 MS-WORD 里的“软回车”。
<------Word Wrapping Hard------->
“硬换行”,好象 MS-WORD 里的“硬回车”。
带边框的表格:
<table border>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
不带边框的表格:
<table>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------Colspan------->
<table border>
<tr><th colspan=3> Morning Menu</th>
<tr><th>Food</th> <th>Drink</th> <th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Morning Menu | ||
---|---|---|
Food | Drink | Sweet |
A | B | C |
<------Rowspan------->
<table border>
<tr><th rowspan=3> Morning Menu</th>
<th>Food</th> <td>A</td></tr>
<tr><th>Drink</th> <td>B</td></tr>
<tr><th>Sweet</th> <td>C</td></tr>
</table>
Morning Menu | Food | A |
---|---|---|
Drink | B | |
Sweet | C |
<------Border------->
边框尺寸设置:
<table border=10>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------Length------->
表格尺寸设置:
<table border width=170 height=100>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------CellSpacing------->
表元间隙设置:
<table border cellspacing=10>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------CellPadding------->
表元内部空白设置:
<table border cellpadding=10>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------ALIGN------->
<table border width=160>
<tr>
<th>Food</th><th>Drink</th><th>Sweet</th>
<tr>
<td align=left>A</td>
<td align=center>B</td>
<td align=right>C</td>
</table>
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------VALIGN------->
<table border height=100>
<tr>
<th>Food</th><th>Drink</th>
<th>Sweet</th><th>Other</th>
<tr>
<td valign=top>A</td>
<td valign=middle>B</td>
<td valign=bottom>C</td>
<td valign=baseline>D</td>
</table>
Food | Drink | Sweet | Other |
---|---|---|---|
A | B | C | D |
<------left------->
<table align="left" border>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
My favorites...<br>
cookies, chocolates, and more.
Food | Drink | Sweet |
---|---|---|
A | B | C |
My favorites...
cookies, chocolates, and more.
<------right------->
Food | Drink | Sweet |
---|---|---|
A | B | C |
My favorites...
cookies, chocolates, and more.
<table align="left" border vspace=20 hspace=30>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
My favorites...<br>
cookies, chocolates, and more.
Food | Drink | Sweet |
---|---|---|
A | B | C |
My favorites...
cookies, chocolates, and more.
<------Caption align------->
<table border>
<caption align=center>Lunch</caption>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Lunch | ||
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------Caption Valign------->
<table border>
<caption valign=bottom>Lunch</caption>
<tr><th>Food</th><th>Drink</th><th>Sweet</th>
<tr><td>A</td><td>B</td><td>C</td>
</table>
Lunch | ||
Food | Drink | Sweet |
---|---|---|
A | B | C |
<------Form Basic------->
*=GET, POST
<------Input Basic------->
*=text, password, checkbox, radio, image, hidden, submit, reset
**=Symbolic Name for CGI script
<------Text & Password------->*=text, password
<form action=/cgi-bin/post-query method=POST>
您的姓名:
<input type=text name=姓名><br>
您的主页的网址:
<input type=text name=网址 value=http://><br>
密码:
<input type=password name=密码><br>
<input type=submit value="发送"><input type=reset value="重设">
</form>
<------Text & Password -- Size, Max ------->
<form action=/cgi-bin/post-query method=POST>
<input type=text name=a01 size=40><br>
<input type=text name=a02 maxlength=5><br>
<input type=submit><input type=reset>
</form>
<------Checkbox------->
<form action=/cgi-bin/post-query method=POST>
<input type=checkbox name=水果1>
Banana<p>
<input type=checkbox name=水果2 checked>
Apple<p>
<input type=checkbox name=水果3 value=橘子>
Orange<p>
<input type=submit><input type=reset>
</form>
<------Checkbox------->
<form action=/cgi-bin/post-query method=POST>
<input type=radio name=水果>
Banana<p>
<input type=radio name=水果 checked>
Apple<p>
<input type=radio name=水果 value=橘子>
Orange<p>
<input type=submit><input type=reset>
</form>
在下面选则一个系数后,在图象上点一下,就知道什么是图象坐标了!
<form action=/cgi-bin/post-query method=POST>
<input type=image name=face src=f.gif><p>
<input type=radio name=zoom value=2 checked>x2
<input type=radio name=zoom value=4>x4
<input type=radio name=zoom value=6>x6<p>
<input type=reset>
</form>
<form action=/cgi-bin/post-query method=POST>
<input type=hidden name=add value=hoge@hoge.jp>
Here is a hidden element. <p>
<input type=submit><input type=reset>
</form>
<------Basic------->
<------select & option------->
<form action=/cgi-bin/post-query method=POST>
<select name=fruits>
<option>Banana
<option selected>Apple
<option value=My_Favorite>Orange
</select><p>
<input type=submit><input type=reset>
</form>
<------size & multiple------->
<form action=/cgi-bin/post-query method=POST>
<select name=fruits size=3>
<option>Banana
<option selected>Apple
<option value=My_Favorite>Orange
<option>Peach
</select><p>
<input type=submit><input type=reset>
</form>
<------multiple------->
注意,是用 Ctrl 键配合鼠标实现多选。
(和 MS-WINDOWS 的 File Manager 一样)
<form action=/cgi-bin/post-query method=POST>
<select name=fruits size=3 multiple>
<option selected>Banana
<option selected>Apple
<option value=My_Favorite>Orange
<option selected>Peach
</select><p>
<input type=submit><input type=reset>
</form>
<form action=/cgi-bin/post-query method=POST>
<textarea name=comment rows=5 cols=60>
</textarea>
<P>
<input type=submit><input type=reset>
</form>
<------Word Wrapping Off------->
<------Word Wrapping Soft------->
“软换行”,好象 MS-WORD 里的“软回车”。
<------Word Wrapping Hard------->
“硬换行”,好象 MS-WORD 里的“硬回车”。