HTML Tags


Go to Top <caption> table caption HTML 3.2 Nav 2 IE2

An element used within the <TABLE> tags. For more information, see the detailed section on Tables.


Go to Top <center> HTML 3.2 Nav 2 IE2

Centre justifies text and puts tables, graphics, etc. in the centre of the page.

example of code

<CENTER> This text is in the middle of the line. </CENTER>

how it renders

This text is in the middle of the line.

Go to Top <cite> HTML 2.0 Nav 2 IE2

A logical style for displaying a citation or quote. Usually (but not necessarily) displayed in italic. See also <BLOCKQUOTE>.

example of code

Listen to Radio 1's <CITE>Evening Session</CITE> for great new music.

how it renders

Listen to Radio 1's Evening Session for great new music.

Go to Top <code> HTML 2.0 Nav 2 IE2

A logical style for displaying examples of code. Usually (but not necessarily) displayed in a fixed-width font. See also <TT> and <PRE>. Use <KBD> to indicate text to be input by a user.

example of code

The logical style <CODE>CODE</CODE> is used to display examples of programming code.

how it renders

The logical style CODE is used to display examples of programming code.

Go to Top <col> Nav 4 IE3

Microsoft Internet Explorer 3 and Netscape Navigator 4 upwards only. Used to specify the text alignment for table columns. Similar to the <COLGROUP> element. For more information, see the detailed section on Tables.


Go to Top <colgroup> Nav 4 IE3

Microsoft Internet Explorer 3 upwards only. Used to specify the text alignment for table columns. Similar to the <COL> element. For more information, see the detailed section on Tables.


Go to Top <!-- text --> comment HTML 2.0 Nav 2 IE2
<comment>
HTML 4.0 Nav 2 IE2

These two tags are effectively the same and enable the author to add comments within the HTML code. These comments will not be displayed by the browser. Note that with the first element, each end tag contains two hyphens. The <COMMENT> tag is only supported by Microsoft Internet Explorer and NCSA Mosaic.

example of code

<!-- This is a comment and will not be displayed -->
<COMMENT> This is also a comment and won't be shown either </comment>

Go to Top <dd> definition list definition HTML 2.0 Nav 2 IE2

Used to specify a definition within a definition list. For more information, see the detailed section on Lists.


Go to Top <dfn> defining instance HTML 3.2 Nav 2 IE2

Not supported by Netscape Navigator 3 or below. A logical style used to distinguish a defining instance in a section of text, ie. to highlight when a specific term is used for the first time. Usually rendered in italic.

example of code

Fluid flow regime can be determined by <DFN>Reynold's Number</DFN>.

how it renders

Fluid flow regime can be determined by Reynold's Number.


Go to Top <dir> directory list HTML 2.0 Nav 2 IE2

Used to create directory list; essentially a short list. For more information, see the detailed section on Lists.


Go to Top <div> logical division HTML 3.2 Nav 2 IE2

This element is used with style sheet attributes to designate sections of text as being of a certain style. Netscape Navigator 3 implements the <DIV> element to work as the <P> tag. For more information, see the detailed section on Style Sheets.


Go to Top <dl> definition list HTML 2.0 Nav 2 IE2

Used to create a definition list. The element must contain terms and definitions provided by the <DT> and <DD> tags respectively. For more information, see the detailed section on Lists.


Go to Top <!doctype> SGML document type definition

This element defines which level of HTML your web page conforms to. It should be the first line of code on your webpage and placed before the <HTML> tag. Your pages will work without this definition although strictly speaking it should be in place on all webpages. The following examples show how to define your pages as conforming to HTML 3.2, HTML 2 and HTML 1 respectively. For more information on how and why visit the W3 Consortium external link.

example of code

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">

Go to Top <dt> definition list term HTML 2.0 Nav 2 IE2

Used to specify a term within a definition list. For more information, see the detailed section on Lists.


Go to Top <em> emphasis HTML 2.0 Nav 2 IE2

A logical style used to give emphasis to a section of text. Usually (but not necessarily) rendered in italic. See also: <STRONG>.


Tricky is the <EM>most original</EM> artist currently on the British music scene.


Tricky is the most original artist currently on the British music scene.

Go to Top <embed> Nav 2 IE3

Allows you to put objects (such as sound, video, etc.) directly into an HTML page. In this way <EMBED> is used to run Netscape plug-ins. The following attributes do not all apply to every embedded object. This element only supported by MS Internet Explorer 3 and Netscape Navigator 2 upwards. This element is not part of official HTML specification and is currently the focus of the W3C HTML working groups Compound Document draft specificationexternal link and will be resolved with HTML 4.0.

The more common attributes are listed below. There may also be a number of plugin-specific attributes.


<EMBED SRC="sounds/empire.mid" AUTOSTART="false" HIDDEN="false" LOOP="true" WIDTH=145 HEIGHT=60>


This example will show a midi sound control if the relevant plug-in is running on your browser.

You can use <EMBED> in a similar way to the above example to play sound in the background, thus acting like MS Internet Explorer's <BGSOUND> which is not supported by Netscape Navigator 3 and below. See Tips n' Tricks for more information on enabling background sound.


Go to Top <font> HTML 3.2 Nav 2 IE2

Used to change the appearance of text. See What's Wrong with the FONT Element? external link for guidance in appropriate use of this element.


Go to Top <form> HTML 2.0 Nav 2 IE2

Used to specify the start of a form. For more information, see the detailed section on Forms.


Go to Top <frame> HTML 4.0 Nav 2 IE3

Used to define a frame. For more information, see the detailed section on Frames.


Go to Top <frameset> HTML 4.0 Nav 2 IE3

Used to define a frameset. For more information, see the detailed section on Frames.


Go to Top <h1>,<h2>,<h3>,<h4>,<h5>,<h6> heading style HTML 2.0 Nav 2 IE2

Renders text as a heading, the rendering depending on the level of heading selected. Headings should be automatically spaced from the body text.


<H1 align="center">A Centered Level 1 Heading</H1>
Some text.
<H2>A Level 2 Heading</H2>
Some more text.


A Centered Level 1 Heading

Some text.

A Level 2 Heading

Some more text.

NB. If you have a browser that supports style sheets then the above headings will probably be coloured, having picked up the style definitions for this page.


Go to Top <head> HTML 2.0 Nav 2 IE2

The head element contains all the information about the document, such as the <TITLE>, <BASE> or <META> information. It does not contain any text which is part of the document, this should be in the <BODY>. The <HEAD> would follow the <HTML> tag and precede the <BODY> element.
A shell document would therefore follow the following format:


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <HTML>
<HEAD>
<TITLE>A Shell Document</TITLE>
</HEAD>
<BODY>
The document in here
</BODY>
</HTML>

Go to Top <hr> horizontal rule HTML 2.0 Nav 2 IE2

This produces a horizontal line across the screen. By default the line will be narrow and span the screen within the current indents, eg. those created by a <BLOCKQUOTE> tag or an image.


<HR ALIGN="left" SIZE=20 WIDTH="75%" COLOR="#FF0000" NOSHADE>





Go to Top <html> HTML 2.0 Nav 2 IE2

Placed at the beginning and end of the document to declare the type of document. A shell document would therefore follow the following format:


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>A Shell Document</TITLE>
</HEAD>
<BODY>
The document in here
</BODY>
</HTML>

Sizzling HTML Jalfrezi
ContactPurchase
Page Contents
Previous pageJalfrezi ContentsNext page

Click Here!