User:Kingofcats/HTML cheat sheet

From Guild Wars Wiki
Jump to navigationJump to search

HTML Basic Document <html> <head> <title>Document name goes here</title> </head>

<body> Visible text goes here </body> </html>

Heading Elements

Largest Heading

. . .

. . .

. . .

. . .
Smallest Heading

Text Elements

This is a paragraph


(line break)


(horizontal rule)

This text is preformatted

Logical Styles This text is emphasized This text is strong This is some computer code Physical Styles This text is bold This text is italic Links, Anchors, and Image Elements <a href="http://www.example.com/">This is a Link</a> <a href="http://www.example.com/"><img src="URL" alt="Alternate Text"></a> <a href="mailto:webmaster@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

  • First item
  • Next item

Ordered list

  1. First item
  2. Next item

Definition list

First term
Definition
Next term
Definition

Tables

someheader someheader
sometext sometext

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

Text quoted from some source.

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

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