当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML 便条

HTML
HTML 介绍
HTML 元素
HTML 基本标签
HTML 格式
HTML 实体字符
HTML 链接
HTML 框架
HTML 表格
HTML 列表
HTML 表单
HTML 图片
HTML 背景
HTML 颜色
HTML 颜色值
HTML 颜色名
HTML 便条
HTML 布局
HTML 字体
HTML 4.0
HTML 样式

HTML 便条


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 845 ::
收藏到网摘: n/a

HTML Basic Document
HTML基础文档

<html>
<head>
<title>文档名称</title>
</head>

<body>

这里出现的文字在浏览器中可见

</body>

</html>

Heading Elements
标题元素

<h1>最大的标题</h1>

<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>

<h6>最小的标题</h6>

Text Elements
文本元素

<p>段落</p>

<br> (line break)换行

<hr> (horizontal rule)水平分割线

<pre>格式化文字</pre>

Logical Styles
逻辑样式

<em>强调文字</em>

<strong>加强文字</strong>

<code>一些计算机代码</code>

Physical 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>

<a href="mailto:[email protected]">发送邮件</a>

A named anchor:
<a name="tips">Useful Tips Section</a>
<a href="#tips">Jump to the Useful Tips Section</a>

Unordered list
无序列表

<ul>

<li>第一项</li>

<li>下一项</li>

</ul>

Ordered list
有序列表

<ol>

<li>First item</li>

<li>Next item</li>

</ol>

Definition list
释义列表

<dl>

<dt>First term</dt>

<dd>Definition</dd>

<dt>Next term</dt>

<dd>Definition</dd>

</dl>

Tables
表格

<table border="1">
<tr>
<th>someheader</th>
<th>someheader</th>
</tr>
<tr>
<td>sometext</td>
<td>sometext</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
特殊字符

&lt; is the same as <

&gt; is the same as >

&#169; is the same as ©

Other Elements
其他元素

<!-- This is a comment -->

<blockquote>
Text quoted from some source.
</blockquote>

<address>
Address 1<br>
Address 2<br>
City<br>
</address>

评论 (1) 1 All

登陆 | 还没注册?