Document 1
Document 1
Below are the most common used html tags used in website
design and a short description of the function of each. Some have examples of how they
are used with their html codes. Website HTML tags are arranged in alphabetical order.
<A></A> This element is what the hyperlinked structure of the World Wide Web is based on. It is
used in two ways:
1. Create a hyperlink to another anchor (Link to another page or website)
2. Create an anchor in a document See working example. or see anchor tutorial
<ADDRESS></ADDRESS> Specifies information such as authorship and contact details for the
current document. Browsers should render the content with paragraph-breaks before and after.
See working example
<AUDIOSCOPE> This element displays the audioscope, the graphical display of the amplitude of
the current sound over time.
<BASE> Supply a base address that must be used for resolving relative URI's to absolute URI's.
<BASEFONT> Change the appearance of the default font that is used to draw the text.
<BDO></BDO> This element overrides the bidirectional algorithm, the default algorithm to
resolve the direction to show the text.
<BGSOUND> Play a background sound when your webpage is opened. This element must be
placed in the HEAD section of the document
.
<BIG></BIG> Increase the current size of the font by 1. The maximum size is 7.
<BODY></BODY> This element contains the body of your website document. If a <HEAD>
section is present in the page then the body must be placed after this section.
<BR> Line Break. Break the current line and continue on the next line.
<BUTTON></BUTTON> This attribute creates a button that the user can push.
<CAPTION></CAPTION> Specify the caption of a table. This element is only valid inside the
TABLE element.
<CITE></CITE> Used for citations or references to other sources. See working example
<COL> This element sets the attribute values for one or more columns.
<COLGROUP> This tag creates a column group and sets attribute values for all the columns in this
group.
<DEL></DEL> This is a tag that is used to indicate webpage text that has been deleted.
<DFN></DFN> This is a element that is used to indicate a word or phrase that is being defined.
<DIV></DIV> HTML DIV tags. This element is a general container for a part of the contents of a
page. Through the DIV element you can add attributes, like style information, to this whole
division. The DIV element will not show anything when used without any other attribute. A
division will terminate a paragraph opened with the P element.
<DIV align="center"> is the same as the deprecated <CENTER> element.
<DL></DL> Create a definition list. This is a list where each item consists of two parts.
<EMBED></EMBED> The EMBED element lets you display output from a plug-in application in
an HTML document.
<FONT></FONT> HTML font tags change the font which is used to draw the text. See working
example
<FORM></FORM> HTML form tags. Create a form inside a document. See working example
<FRAME> In a page with frames, this element defines how the a specific frame looks and what is
initially shown inside the frame, when the framed page is loaded.
This element is only allowed inside a FRAMESET element. Frames tutorial
<H1></H1> The elements H1, H2, H3, H4, H5 and H6 are used to create several levels of headers,
with H1 as the most important header and H6 as the least important. See working example
<HEAD></HEAD> Container for elements describing the current document. This section contains
no contents the browser should display in the body of the text.
The following elements are allowed inside the HEAD section :
BASE
BASEFONT
BGSOUND
ISINDEX
LINK
META
SCRIPT
STYLE
TITLE
<ILAYER></ILAYER> With this element you can create several layers of content on a page.
These layers can be stacked on top of each other, showing parts of underlying layers through non-
occupied space.
<IMG> HTML image tag. Place an image in the document. See working Example
<INPUT> Create a control for a form. A control is an element which the user can use to enter data,
like textboxes, radiobuttons and checkboxes and is only valid inside the FORM element.
<ISINDEX> This element will show an text input field. After pressing the <Enter> key the browser
will construct a new URL, with the current address, a question mark and the text the user entered in
the text field, and send it to the server
<LAYER></LAYER> With this element you can create several layers of content on a page. These
layers can be stacked on top of each other, showing parts of underlying layers through non-
occupied space.
<LEGEND></LEGEND> Give the caption for a group of related controls, created with the
FIELDSET element. See working example
<MAP></MAP> This element is a container for the map that is used in a client-side image map.
<MARQUEE></MARQUEE> HTML marquee tag. This element is a container that enables you to
create a scrolling text marquee. See working example
<NOBR></NOBR> The NOBR element stands for NO BReak. This means all the text between the
start and end of the NOBR elements cannot have line breaks inserted between them.
<OBJECT></OBJECT> The object element allows the author to embed an object into the
document. This element also replaces the APPLET element.
<P></P> This indicates a paragraph in the document. It is a container but most browsers allow you
to omit the closing element.
<PARAM> This element is for supplying parameters to a JAVA applet or another object and is
only valid inside the APPLET and OBJECT elements.
<PLAINTEXT></PLAINTEXT> All HTML elements inside this container are ignored by the
browser, and shown as they were only text.
<PRE></PRE> This element allows you to show preformatted text as it is, using the supplied
whitespace of the text.
<Q></Q> This is used to enclose short quotations from other works in the page.
<S></S> Render text as strikethrough. See working example.
<SELECT></SELECT> This element lets you create a listbox as an input field on a form.
See working example.
<SERVER></SERVER> This element is used to write JavaScripts that will be executed on the
server, in the process of serving the page to the browser.
<SMALL></SMALL> Draw the text using a smaller font than the one that is used for normal text.
<SPACER> With a spacer you can control the horizontal whitespace that appears between words in
a line, the vertical whitespace that appears between lines on a page, or set up rectangular spacing
elements.
<SPAN></SPAN> This element is used to create a structure in a document. By using this element
you can give a part of the document a name, or apply style sheet information to the part.
See Working Example
<STRONG></STRONG> Render the text with strong emphasis. See working example
<STYLE></STYLE> This element is a container for style sheet elements to use with this
document.
<SUB></SUB> This is a container for text that should be displayed as a subscript, and, if practical,
using a smaller font (compared with normal text). See working example.
<TABLE></TABLE>
HTML table tags. Create a table layout which can contain cells in rows and columns. The cells of a
table are specified with the TR, TH and TD elements.
<TBODY></TBODY>
This element defines the body part of a table.
<TD></TD>
HTML table tags. The container for a cell in a table. Inside this you can put all the HTML coding
you want to appear in the cell.
<TEXTAREA></TEXTAREA>
Define a multiline text field in a form. This element is only valid inside the FORM element.
<TFOOT></TFOOT>
This element defines the footer of a table.
<TITLE></TITLE>
Specify the title of the HTML document. This element is only allowed inside the HEAD element.
<TR></TR>
Define a row inside a table.
<U></U>
Underline your text.
<UL></UL>
Create an unordered list of items, where unordered means the individual items are not numbered,
but have a bullet in front of them. If you want numbered items use an ordered list. The items in the
list are identified with the LI element.
See working example
<VAR></VAR>
Used to describe a metasyntactic variable, where the user is to replace the variable with a specific
instance. Typically displayed in italics.
<WBR>
The WBR element stands for Word Break.