Common HTML Tags

Here are a few common HTML v.4.01 Tags and attributes.

Tags are listed in BOLD and respective attributes, if any, are listed beneath the tag.

Tags/Attribute Description
<!– Comments Here –> Used for inserting comments into your web page.

Required HTML Tags for any HTML Page

<html>, </html> Identifies a text document as an HTML document and tells your browser that the page you are viewing is written with HTML code. This tag is required. ALL html must occur WITHIN the <html> tags.
<head>, </head> Creates a head section in an HTML document. This tag is required.
<title>, </title> Creates a title for your document. This tag helps search engines index your document and gives users a general idea of what your web page is about. This tag is required. Must be WITHIN <head> tags.
<body>, </body> Used for enclosing the content, or main, section of the page. This tag is required.

Formatting Tags

<h1>,</h1> First level heading. Very large text size. Requires both beginning and ending tags.
<h2>,</h2> Second level heading. Requires both beginning and ending tags.
<h3>,</h3> Third level heading. Requires both beginning and ending tags.
<h4>,</h4> Fourth level heading. Requires both beginning and ending tags.
<h5>,</h5> Fifth level heading. Requires both beginning and ending tags.
<h6>,</h6> Sixth level heading. The smallest text size for any heading tag.
<p>,</p> This creates a new paragraph. Note: you need to use this tag if you want to create a space between two blocks of texts (paragraphs). Simply hitting the return key will not make a new paragraph because HTML ignores hard returns and spaces. Does not require that you close this tag, but it helps to get into a good habit, since many HTML and XHTML tags require that you close a tag.
<br / > This creates a line break. Use it to create a new line in, say, writing your postal address where you want a separate line for address, city, zip code.
<hr / > Creates a horizontal rule that can be used to section off part of a page.
<strong>,</strong> Creates bold text. Requires both beginning and ending tags.
<em>,</em> Creates italic text. Requires both beginning and ending tags.
<cite> Marks text as a citation.
<blockquote>,
</blockquote>
Used for indenting a block of text, usually for a quote or excerpt.

 

Links

<a> , </a> Used for creating hyperlinks and anchors
   ACCESSKEY Adds a keyboard shortcut to a link.
   HREF Specifies URL (address) of another web page or names an anchor that the link specifies.
   NAME Marks a specific area of a page that a link can jump to.
   TARGET Specifies a particular window for a link to appear in.
   TABORDER Defines order of Tab key for moving from one link to the next using the Tab key.

 

Lists

<ul>,</ul> Creates bulleted lists.
<ol>,</ol> Creates ordered lists.
   TYPE Specifies a symbol to be used for the list.
   START Specifies the initial value of the the first list item.
<li>,</li> Creates a list item. This tag is required to create indivdual list items.
<dd>, </dd> Creates a definition list
<dt>,</dt> Creates a defintion term.
<dl>,</dl> Creates a definition list.

Images

<img> Inserts an image (GIF, JPG, PNG) into the document.
   ALIGN Aligns images left, center, or right.
   ALT Provides alternate text that describes an image when a mouse moves over it.
   SRC Specifies the URL (path) of the image.
   WIDTH Specifies the width of an image.
   HEIGHT Specifies the height of an image.

tables

<table>,</table> Creates a table.
   CELLPADDING Defines amount of space between a cell’s contents and its borders.
   CELLSPACING Defines amount of space between cells.
   WIDTH Defines the width of the table. Use either relative (percentages) or absolute (pixels) measurements.
   HEIGHT Defines the height of the table. Use either relative (percentages) or absolute (pixels) measurements.
<tr>,</tr> Creates a row within a table
   ALIGN Aligns contents within the row to the left, center, or right. Default is left.
   VALIGN Aligns contents within the row to the top, middle, or bottom. Default is middle.
   BGCOLOR Defines a background color for the row.
<td>,</td> Creates a cell in a table.
   ALIGN Aligns contents within the cell to the left, center, or right. Default is left.
   VALIGN Aligns contents within the cell to the top, middle, or bottom. Default is middle.
   BGCOLOR Defines a background color for the cell.
   COLSPAN Used for spanning a cell across more than one column.
Columns are vertical. Rows are horizontal.
   NOWRAP Forces contents within a cell to stay on one line and NOT break.
   ROWSPAN Used for spanning a cell across more than one row.
Rows are horizontal. Columns are vertical.
   WIDTH Defines the width of a cell. Use either relative (percentages) or absolute (pixels) measurements.
   HEIGHT Defines the height of a cell. Use either relative (percentages) or absolute (pixels) measurements.