HTML基础知识
HTML Basic Document
<html>
<head>
<title>网页标题</title>
</head>
<body>
网页内容
</body>
</html>
Text Elements
<p>段落内容</p>
<br/> (换行)
<hr/> (分割线)
<pre>预定义格式</pre>
Logical Styles
<b>粗体</b>
<i>斜体</i>
Links, Anchors, and Image Elements
<a href="http://www.example.com/">链接</a>
<a href="http://www.example.com/"><img src="URL"
alt="Alternate Text"></a>(图片形式的链接,若无法加载则显示alt中的文字)
<a href="mailto:webmaster@example.com">发送邮件</a>A named anchor:
<a name="tips">提示部分</a>
<a href="#tips">J跳转到提示部分</a>
Unordered list & Ordered list
<ul>
<li>第一个有序项</li>
<li>第二个有序项</li>
</ul>
<ol>
<li>第一个无序项</li>
<li>第二个无序项</li>
</ol>
Definition list
<dl>
<dt>第一项标题</dt>
<dd>内容</dd>
<dt>第二项标题</dt>
<dd>内容</dd>
</dl>
Tables
<table border="1">
<tr>
<th>第一行第一项</th>
<th>第一行第二项</th>
</tr>
<tr>
<td>第二行第一项</td>
<td>第二行第二项</td>
</tr>
</table>
Frames
<frameset cols="25%,75%">
<frame src="page1.htm">
<frame src="page2.htm">
</frameset>
Forms
<form action="http://www.example.com/test.asp" method="post/get">
<input type="text" name="lastname"
value="Nixon" size="30" maxlength="50">
<input type="password">
<input type="checkbox" checked="checked">
<input type="radio" checked="checked">
<input type="submit">
<input type="reset">
<input type="hidden">
<select>
<option>Apples
<option selected>Bananas
<option>Cherries
</select>
<textarea name="Comment" rows="60"
cols="20"></textarea>
</form>
Entities
< 与 < 相同
> 与 > 相同
© 与 © 相同
Other Elements
<!-- This is a comment -->
<blockquote>
Text quoted from some source.
</blockquote>
<address>
Address 1<br>
Address 2<br>
City<br>
</address>
本来想直接学JavaScript的,又想想还是有必须先扩充一下有关html的基本知识。