HTML quick reference

HTML quick reference from CodeW3C.com. It can be printed for daily use.

Basic HTML document

<html>
<head>
<title>Name of the document goes here</title>
</head>
<body>
Visible text goes here
</body>
</html>

Text element

<p>Here is a paragraph</p>
<br> (line break)
<hr> (pozioma linia)
<pre>Tekst jest w formacie wstępnym</pre>

styl logiczny

<em>Tekst jest podkreślony</em>
<strong>Tekst jest silny</strong>
<code>To jest pewien kod komputerowy</code>

styl fizyczny

<b>Tekst jest pogrubiony</b>
<i>Tekst jest kursywowany</i>

linki, kotwice, elementy obrazów

<a href="http://www.example.com/">To jest link</a>
<a href="http://www.example.com/"><img src="URL"
alt="Alternatywny tekst"></a>
<a href="mailto:webmaster@example.com">Wyślij e-mail</a>Azokrednik:
<a name="tips">Sekcja Przydatnych Wskazówek</a>
<a href="#tips">Przejdź do sekcji Przydatnych Wskazówek</a>

nieuporządkowana lista

<ul>
<li>Pierwszy element</li>
<li>Następny element</li>
</ul>

uporządkowana lista

<ol>
<li>Pierwszy element</li>
<li>Następny element</li>
</ol>

lista definicji

<dl>
<dt>Pierwszy termin</dt>
<dd>Definicja</dd>
<dt>Następny termin</dt>
<dd>Definicja</dd>
</dl>

tabela

<table border="1">
<tr>
  <th>someheader</th>
  <th>someheader</th>
</tr>
<tr>
  <td>sometext</td>
  <td>sometext</td>
</tr>
</table>

ramka

<frameset cols="25%,75%">
  <frame src="page1.htm">
  <frame src="page2.htm">
</frameset>

formularz

<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>

Znaki specjalne

< jest takie samo jak <
> jest takie samo jak >
© jest takie samo jak ©

Inne elementy

<!-- To jest komentarz -->
<blockquote>
Cytat z pewnego źródła.
</blockquote>
<address>
Adres 1<br>
Adres 2<br>
Miasto<br>
</address>

Źródło: http://www.codew3c.com/html/html_quick.asp