Sitemap - Contact Details

The latest top 5 hits from the DK - Webmaster Resource Directory

Add your webmaster resource to the DK - Webmaster Resource Directory today! FREE

A summary of news relating to the world wide web


Web Site And Graphic Design Basic HTML Tags

The following are web site design basic HTML tags and terms commonly used in a web page build. Although these are very much the basic building blocks of a web page they are being used less in favour of CSS, Javascript, XML and PHP.

Basic Tags

<html></html>

Start of an HTML document.

<head></head>

None displayed information .

<body></body>

Write the html code between these tags which is then what the browser reads and then displays
Header Tags

<title></title>

Page title
Body Attributes

<body bgcolor="YELLOW" or "FFF0000">

Browser page background color, using name or hex value. In this case its "YELLOW"

<body text="RED" or "FF0000" >

Sets the text color, using name or hex value. In this case "RED"

<body link="BLACK" or "000000">

Sets the color of links, using name or hex value.

<body vlink="RED" or "FF0000">

Sets the color of followed links, using name or hex value.

<body alink="BLUE" or "0000FF">

Sets the color of links on click.
Text Tags

<pre>Creates preformatted text</pre>

Creates preformatted text.

<hl>Largest sized headline.</hl>

Largest sized headline.

<h6>Smallest sized headline.</h6>

Creates the smallest headline.

<b>Bold text.</b>

Bold text.

<i>Italic text.</i>

Italic text.

<tt>Typewriter-style text.</tt>

Typewriter-style text.

<cite>A citation, usually italic.</cite>

A citation, usually italic.

<em>Emphasizes a word (with italic or bold).</em>

Emphasizes a word (with italic or bold).

<strong>Emphasizes a word (with italic or bold).</strong>

Emphasizes a word (with italic or bold).

<font size=?>Sets size of font, from 1 to 7).</font>

Sets size of font, from 1 to 7).

<font color="BLACK or "000000">Font color, using name or hex value.</font>

Font color, using name or hex value. In this case "BLACK"

Links

<a href="page address">A link on a page.</a>

A link on a page.

<a href="mailto:email address">A mailto link.</a>

A mailto link.

<a name="NAME">A target location within a documen link.</a>

A target location within a documen link.

<a href="#NAME">A Link to that target location from any page.</a>

A ink to that target location from any page.
Formatting

<p>New paragraph.</p>

New paragraph.

<p align="LEFT" - "RIGHT" or "CENTER">Aligns a paragraph to the left, right, or center.</p>

Aligns a paragraph to the left, right, or center. Left in theis csae.

<br>

Inserts a line break.

<blockquote>Indents text from both sides.</blockquote>

Indents text from both sides.

<dl>Creates a definition list.</dl>

Creates a definition list.

<dt>

Precedes each definition term.

<dd>

Precedes each definition.

<ol>Creates a numbered list.</ol>

  1. Creates a numbered list.

<li>Precedes each list item, and adds a number.</li>

  • Precedes each list item, and adds a number or bullet.

<ul>Creates a bulleted list.</ul>

  • Creates a bulleted list.

<div align=?>

A generic tag used to format large blocks of HTML, also used for stylesheets.
Graphical Elements

<img src="name">

www.ahomefromhome.org website thumb image

Adds an image.

<img src="name" align=?>

website image thumbnail for www.lloydgoldsmith.com

Aligns an image: left, right, center; bottom, top, middle.

<img src="name" border=?>

website image thumbnail for www.lloydgoldsmith.com

Sets size of border around an image.

<hr>

Inserts a horizontal line.

<hr size=?>

Sets size height horizontal line.

<hr width="100%" or "10" >

Sets width of horizontal line, in percentage or absolute value.

<hr noshade>

Sets a horizontal line without a shadow.
Tables

<table></table>

Creates a table.

<tr></tr>

Sets off each row in a table.

<td></td>

Sets off each cell in a row.

<th></th>

Sets off the table header (a normal cell with bold, centered text).
Table Attributes

<table border=#>

Sets width of border around table cells.

<table cellspacing=#>

Sets amount of space between table cells.

<table cellpadding=#>

Sets amount of space between a cell's border and its contents.

<table width=# or %>

Sets width of table — in pixels or as a percentage of document width.

<tr align=?> or <td align=?>

Sets alignment for cell(s) (left, center, or right).

<tr valign=?> or <td valign=?>

Sets vertical alignment for cell(s) (top, middle, or bottom).

<td colspan=#>

Sets number of columns a cell should span.

<td rowspan=#>

Sets number of rows a cell should span (default=1).

<td nowrap>

Prevents the lines within a cell from being broken to fit.
Frames

<frameset></frameset>

Replaces the <body tag> in a frames document; can also be nested in other framesets.

<frameset rows="value,value">

Defines the rows within a frameset, using number in pixels, or percentage of width.

<frameset cols="value,value">

Defines the columns within a frameset, using number in pixels, or percentage of width.

<frame>

Defines a single frame — or region — within a frameset.

<noframes></noframes>

Defines what will appear on browsers that don't support frames.
Frames Attributes

<frame src="URL">

Specifies which HTML document should be displayed.

<frame name="name">

Names the frame, or region, so it may be targeted by other frames.

<frame marginwidth=#>

Defines the left and right margins for the frame; must be equal to or greater than 1.

<frame marginheight=#>

Defines the top and bottom margins for the frame; must be equal to or greater than 1.

<frame scrolling=VALUE>

Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto." The default, as in ordinary documents, is auto.

<frame noresize>

Prevents the user from resizing a frame
Forms
To get your form to work you will need a CGI Script to intrereact with your input data on the form. The HTML here will just create the appearance of a form.

<form></form>

Creates all forms

<select multiple name="NAME" size=?></select>

Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.

<option>

Sets off each menu item

<select name="NAME"></select>

Creates a pulldown menu

<option>

Sets off each menu item

<textarea name="NAME" cols=40 rows=8></textarea>

Creates a text box area. Columns set the width; rows set the height.

<input type="checkbox" name="NAME">

Creates a checkbox. Text follows tag.

<input type="radio" name="NAME" value="x">

Creates a radio button. Text follows tag.

<input type=text name="foo" size=20>

Creates a one-line text area. Size sets length, in characters.

<input type="submit" value="NAME">

Creates a Submit button.

<input type="reset">

Creates a Reset button.



Web Design  |  Webmaster Tools  |  Webmaster Directory

© 2003 - 2008 DK Web Design