HTML Reference

<html>
<head>
<title>Things to remember</title>
</head>
<body>
1.    Close all tags.
2.    Always use lowercase.
3.    Always quote attribute value.
</body>
</html>
Heading
<h1>Important headings</h1>
<h6>Less important headings </h6>
Paragraph
<p>Paragraph tag</p>
Line breaks
<br />
<br></br>
Text formatting
<em>emphasis</em>
<b>bold</b>
<i>italics</i>
<code>Computer code</code>
<sub>Subscript</sub>
<sup>Superscript</sup>
Comment
<!–comment goes here –>
Horizontal line
<hr />
Image
<img src=”image.jpg” width=”300″ height=”300″ alt=”Just an image”/>
Link to another page
<a href=”list.php”>List</a>

Link to another site
<a href=”http://www.google.com/”>Google</a>

Anchored link
To create anchor
<a name=”Lens”>Lens</a>
To create link
<a href=”#lens”>Lens</a>
Image as a link
<a href=”another_page.html”><img src=”image.jpg” alt=”image description”></a>
Open link in new Tab or Window
<a href=”http://www.google.com/” target=”_blank”>Google in new tab</a>

Bulleted list
<ul type=”disc”>
    <li>Nepal</li>
    <li>India</li>
    <li>China</li>
</ul>
Numbered list
<ol type=”1″ start=”1″>
    <li>Nepal</li>
    <li>India</li>
    <li>China</li>
</ul>

Defination list
<dl>
    <dt>one</dt>
    <dd>one = 1 = ek</dd>
    <dt>Two</dt>
    <dd>Two = 2 = dui</dd>
</dl>
Table
<table border=”1″>
<tr>
    <th>Head 1</th>
    <th>Head 2</th>
    <th>Head 3</th>
</tr>
<tr>
    <td>Cell 11</td>
    <td>Cell 12</td>
    <td>Cell 13</td>
</tr>
</table>
HTML web design