你正在查看: 首页 > 技术文章>html > html快速参考

html快速参考

HTMLBasicDocument

<html>
<head>
<title>Documentnamegoeshere</title>
</head>
<body>
Visibletextgoeshere
</body>
</html>

TextElements

<p>Thisisaparagraph</p>
<br>(linebreak)
<hr>(horizontalrule)
<pre>Thistextispreformatted</pre>

LogicalStyles

<em>Thistextisemphasized</em>
<strong>Thistextisstrong</strong>
<code>Thisissomecomputercode</code>

PhysicalStyles

<b>Thistextisbold</b>
<i>Thistextisitalic</i>

Links,Anchors,andImageElements

<ahref="http://www.example.com/">ThisisaLink</a>
<ahref="http://www.example.com/"><imgsrc="URL"
alt="AlternateText"></a>
<ahref="mailtwebmaster@example.com">Sende-mail</a>Anamedanchor:
<aname="tips">UsefulTipsSection</a>
<ahref="#tips">JumptotheUsefulTipsSection</a>

Unorderedlist

<ul>
<li>Firstitem</li>
<li>Nextitem</li>
</ul>

Orderedlist

<ol>
<li>Firstitem</li>
<li>Nextitem</li>
</ol>

Definitionlist

<dl>
<dt>Firstterm</dt>
<dd>Definition</dd>
<dt>Nextterm</dt>
<dd>Definition</dd>
</dl>

Tables

<tableborder="1">
<tr>
<th>someheader</th>
<th>someheader</th>
</tr>
<tr>
<td>sometext</td>
<td>sometext</td>
</tr>
</table>

Frames

<framesetcols="25%,75%">
<framesrc="page1.htm">
<framesrc="page2.htm">
</frameset>

Forms

<formaction="http://www.example.com/test.asp"method="post/get">
<inputtype="text"name="lastname"
value="Nixon"size="30"maxlength="50">
<inputtype="password">
<inputtype="checkbox"checked="checked">
<inputtype="radio"checked="checked">
<inputtype="submit">
<inputtype="reset">
<inputtype="hidden">
<select>
<option>Apples
<optionselected>Bananas
<option>Cherries
</select>
<textareaname="Comment"rows="60"
cols="20"></textarea>
</form>

Entities

<isthesameas<
>isthesameas>
©isthesameas©

OtherElements

<!--Thisisacomment-->
<blockquote>
Textquotedfromsomesource.
</blockquote>
<address>
Address1<br>
Address2<br>
City<br>
</address>


客服 反馈