HTML Quick Reference

Source: Internet
Author: User
HTML Basic Document



<title>document Name Goes here</title>

<body>
Visible text goes here
</body>


Text Elements

<p>this is a paragraph</p>
<br> (line break)
<pre>this text is preformatted</pre>

Logical Styles

<em>this text is emphasized</em>
<strong>this text is strong</strong>
<code>this is some computer code</code>

Physical Styles

<b>this text is bold</b>
<i>this text is italic</i>

Links, anchors, and Image Elements

<a href= "http://www.example.com/" >this is a link</a>
<a href= "http://www.example.com/" >alt= "Alternate Text" ></a>
<a href= "mailtwebmaster@example.com" >send E-mail</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>first item</li>
<li>next item</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= "maxlength=" >
<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= "></textarea>"
</form>

Entities

< is the same as <
> is the same as >
©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>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.