Wednesday, April 14, 2010

HTML CSS and JavaScript References

Here's a place for web and html related reference material.

CSS margin and padding

  • top, right, bottom, left

HTML Entities

Result Description Entity Name Entity Number
  non-breaking space    
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
" quotation mark &quot; &#34;
' apostrophe  &apos; &#39;
left double quote &ldquo; &#147 / &#8220;
right double quote &rdquo; &#148 / &#8221;
× multiplication &times; &#215;
÷ division &divide; &#247;
© copyright &copy; &#169;

HTML template

<html>

<head>

<title></title>

<link rel="stylesheet" type="text/css" href="style.css" />

</head>

<body>

<h1>Example Page</h1>
<p></p>

</body>
</html>

Style

<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.myborder
{
border:1px solid black;
}
</style>

Table

<h2>Table</h2>

<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>

List

<h2>List</h2>

<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>