A Cool Site for learning different

Sunday, September 08, 2013

HTML Quick List

Reference: http://www.w3schools.com/html/html_quick.asp

HTML Quick List from W3Schools. Print it, fold it, and put it in your pocket.

HTML Basic Document

<!DOCTYPE html>
<title>Title of document goes here</title>
Visible text goes here...
</body> </html>

Basic Tags

<h1>Largest Heading</h1>
<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6>Smallest Heading</h6>

<p>This is a paragraph.</p>
<br> (line break)
<hr> (horizontal rule)
<!-- This is a comment -->


<b>Bold text</b>
<code>Computer code</code>
<em>Emphasized text</em>
<i>Italic text</i>
<kbd>Keyboard input</kbd>
<pre>Preformatted text</pre>
<small>Smaller text</small>
<strong>Important text</strong>

<abbr> (abbreviation)
<address> (contact information)
<bdo> (text direction)
<blockquote> (a section quoted from another source)
<cite> (title of a work)
<del> (deleted text)
<ins> (inserted text)
<sub> (subscripted text)
<sup> (superscripted text)


Ordinary link: <a href="http://www.example.com/">Link-text goes here</a>
Image-link: <a href="http://www.example.com/"><img src="URL" alt="Alternate Text"></a>
Mailto link: <a href="mailto:webmaster@example.com">Send e-mail</a>Bookmark:
<a id="tips">Tips Section</a>
<a href="#tips">Jump to the Tips Section</a>


<img src="URL" alt="Alternate Text" height="42" width="42">


<style type="text/css">
  h1 {color:red;}
  p {color:blue;}

<div>A block-level section in a document</div>
<span>An inline section in a document</span>

Unordered list


Ordered list

  <li>First item</li>
  <li>Second item</li>

Definition list

  <dt>Item 1</dt>
    <dd>Describe item 1</dd>
  <dt>Item 2</dt>
    <dd>Describe item 2</dd>


<table border="1">
    <th>table header</th>
    <th>table header</th>
    <td>table data</td>
    <td>table data</td>


<iframe src="demo_iframe.htm"></iframe>


<form action="demo_form.asp" method="post/get"> <input type="text" name="email" size="40" maxlength="50">
<input type="password">
<input type="checkbox" checked="checked">
<input type="radio" checked="checked">
<input type="submit" value="Send">
<input type="reset">
<input type="hidden">
<option selected="selected">Bananas</option>
<textarea name="comment" rows="60" cols="20"></textarea>



&lt; is the same as <
&gt; is the same as >
&#169; is the same as © Source : http://www.w3schools.com/html/html_quick.asp