Tag name Codename Use Closed? Commonly used attributes Example
html html Tells Windows/Linux/Macintosh we are using html as a programming language. yes N/A Example
head head Gives information to the browser. Commonly put inside it are script, style, and title tags. yes N/A Example
title title Puts text in the blue title bar up top. yes N/A Example
body body Except for the blue title bar and the gray tool and address bars, the body contains everything you see in the window. yes -bgcolor="colorname"
^^ sets background color
-background="image address"
^^ Puts an image as background
-onload="function()"
^^ javascript executed when a page loads
Example
bold b Makes text thicker. yes N/A Example
italics i Italicises text. yes N/A Example
header h1, h2, h3, h4, h5, h6 Make text bigger. Progressively get smaller from h1 to h6. Adds the equivalent of two <br> tags before and after whatever is in it. yes N/A Example
division div Aligns text on a web page. yes -align="position"
^^ sets horizontal placement
-valign="position"
^^ sets vertical placement
-class="classname"
^^ content will belong to defined class
-style="style properties;"
^^ content will have said style properties
Example
break br Sends following content to a new line. no N/A Example
horizontal rule hr Makes a stright line across the page (or cell, if it's inside a table). Always starts on new line. no N/A Example
paragraph p Defines a paragraph. Text within this tag will automatically be on a new line. yes N/A Example
image img Inserts an image. no -src="image address"
^^ address from which the image should be taken
-width="amount in numbers"
^^ how wide the image will be. Be careful, it stretches the image
-style="style properties;"
^^ image will have said style properties
Example
anchor/link a Makes a link to a file or place within the document. yes -href="address"
^^ where the link leads
-target="_place"
^^ wether file is opened in same window or in new
-name="name of your choice"
^^ used when linking to a place in the current page
Example
table table Makes a table. yes -width="amount"
^^ how wide the table will be
-bgcolor="color"
^^ the color of the table
-border="amount"
^^ the thickness of the border
-bordercolor="color"
^^ the color of the border
-cellspacing="amount"
^^ space between cells
Example
row tr Makes a row in a table. yes N/A Example
cell td Makes a cell in a row. yes -bgcolor="color"
^^ color of a cell
-colspan="amount"
^^ as wide as how many cells will this cell be
-rowspan="amount"
^^ how many rows wide this cell will be
Example
span span Works like div tag, but without aligning. yes -style="style properties"
^^ style of the content
-class="class name"
^^ content will have properties of the class
Example
form form Sends information to other web pages. Contains other tags. yes -action="address"
^^ where the information will be sent
-method="POST or GET"
^^ how to send the information. Get sends it with the address, Post without.
-name="name of your choice"
^^ name of the form, used for javascript
Example
input input This tag has a lot of uses. Each depends on the attribute type. If type="text", then you will have a field. If submit, then a button, if checkbox, then a checkbox, if radio, a radio button, if password, a field with stars. no -type="type"
^^ what type of input
-value="initial value of the input"
^^ Usually, the initial value of the input
-name="name of your choice"
^^ name of the input, used for javascript
Example