Character Charts
W3C Compliancy
CSS
Regular Expressions
PHP
Useful Tools
HTML Tags and Attributes
1. GLOBAL
!doctype Required. Specifies the Document Type Definition (DTD) to which the document conforms. If omitted, the document will fail the W3C validator (http://validator.w3.org).
 
html Required. Closing tag. HyperText Mark-up Language. Begins and ends all HTML documents
 
head Closing tag. Contains global information on the document
 
body Required. Closing tag. Encloses the main body of the document.
 
script Closing tag. Used for programming script, usually javascript.
 
2. HEAD
title Closing tag. Title of document. Appears at top of browser; in computer toolbar; used by search engines, both to label page on results list, and, more importantly, to rank page for specified keywords.
 
link Associate an external file with this document
 
meta Specify hidden information about this document. The meaning depends on which attributes are indicated.
 
style Closing tag. Define CSS styles here.
 
bgsound Sound clip to be played when page is loaded.
 
3. TABLE
table Define table.
 
tbody Table body. The immediate child of the table, and the parent of the table rows. Created whether or not you specify it, which is important to know if you are writing code to access a table object relative to a td, using parentElement (or vice versa). Apparently, tbody is one of three potential parts of a table, the other two being thead and tfoot, but I've never used them.
 
tr Table row. Goes inside a table.
 
td Table cell. Goes inside a tr.
 
4. OBJECTS ON THE PAGE
img Display an image
 
map Closing tag. Define a map. This is used for an area indicated within an image.
 
area Inside the map, you define one or more areas within the image.
 
hr Horizontal line.
 
br Line Break. Ordinarily, any amount of white space between two characters is always translated into one space. Therefore, you can use this if you want text to begin one line down. Use two in a row to skip lines between paragraphs.
 
5. TEXT
b Bold.
 
i Italics.
 
u Underline. I try to avoid this, since by now, underlined text is almost universally regarded as clickable.
 
strike Strikeout. Useful for indicating sales.
 
sub Subscript.
 
sup Superscript.
 
6. CONTAINERS
a An anchor. Closing tag. This is the simplest, most common, way of putting clickable links on your page.
 
center Center objects in the page.
 
div A generic container for objects.
 
span Another generic container for objects. The difference between this and div is that a div has display block and span has display inline. Therefore, a div will begin on a new line, while a span will not. Each has its place.
 
h1 A heading. There is also h2, h3, etc. The primary use of this is for search engines. Its effect (bold and large size) can be negated with css.
 
ul Unnumbered list. This is a container for a list of items. A bullet will appear before each.
 
ol Ordered list. Same as ul, but each list element will be preceded by a number.
 
li A list item of a ul or ol list. Closing tag optional.
 
7. FORM
form A form that can be submitted. A form contains inside it all sorts of input objects, called controls, described below. If these objects are not defined inside a form, then they will be unavailable to the page which processes the form.
 
input An input object to be submitted. There are many different types. Note: I think that it would have been better to make each of these a distinct object. Among other things, with the present situation, you cannot give a distinct CSS to each input type – you must use classes!
 
select A dropdown menu.
 
option An option within a dropdown menu. I typically give it a closing tag, although I understand that this is optional.
 
optgroup Appears as a header above a group of options in a select.
 
textarea Closing tag. A multiple-line text input area.
 
button Closing tag. I use this instead of input type=button when I want the text of a button to be split onto more than one line.
 
8. GENERAL ATTRIBUTES
dir Default is ltr. I use rtl for Hebrew-language websites.
 
id Very useful if you wish to access a particular object, usually in javascript. You use document.getElementById.
 
name Same idea as id – giving an object an identifier. Name specifically must be used: a. For objects whose data is meant to be submitted as part of a form. b. With map. c. With a where the href is another a on the page. Note that unlike id, more than one object may share the same name – in radio, they often must.
 
class If you define a class in your style section, you may assign any object that defined class. Note: in javascript, use className.
 
title The contents of the title of an object will appear in a small rectangle when you mouseover the object.
 
9. TODO
applet Display java applet.
 
iframe Define a frame in the page.
 
object Display a flash object.
 
frameset Display a frameset.
 
marquee Scrolling object.
 
 
References:
 
http://www.w3.org/TR/REC-html40/cover.html#minitoc
 
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp
 
http://www.cs.tut.fi/~jkorpela/HTML3.2/index.html
 
 
 
 
Check this page for W3C Compliancy
 
Top of Page