Sunshine HTML Resource HEAD | BODY | Forms | Frames | Images | Layout | Links | Lists | Tables | Text: Logical & Physical

TAGS | ATTRIBUTES ( Common ) | VALUES       ENTITIES       INFO | HELP | AUTHOR




FOOTNOTES

Common Attributes:     TITLE * . . . CORE § . . . EVENT ¤ . . . LANG . . . DIR »


INSTRUCTIONS:







Tag Glossary
(HTML Elements)

NOTES:

!-- — Encloses a commented section that will be ignored by the browser. — [WDG] [WHATWG]

!DOCTYPE — Indicates the document type. Must be the first line of the document. (See HTML.) — [WDG] [WHATWG]

& ... ; — Indicates insertion of a special character such as:  ampersand ( & = &amp; = &#38; ) . . . less than ( < = &lt; = &#60; ) . . . greater than ( > = &gt; = &#62; ) . . . non-breaking space (   = &nbsp; = &#160; ) . . . copyright ( © = &copy; = &#169; ) . . . registered trademark ( ® = &reg; = &#174; ) . . . trademark ( ™ = &trade; = &#8482; ) . . . bullet ( • = &bull; = &#8226; ) . . . and lots of others. — [WDG] [WHATWG]

A HREF — Encloses text that becomes a link to the site referenced in the HREF attribute. (See A ID and A NAME.) — [WDG] [WHATWG]

A ID — Encloses text that becomes the destination of other links. In this way other pages can link right to that spot using A HREF="doc.html#name". (Preferred over A NAME.) — [WDG] [WHATWG]

A NAME — Encloses text that becomes the destination of other links. In this way other pages can link right to that spot using A HREF="doc.html#name". (Use the ID attribute in a nearby tag or A ID instead.) — [WDG] [WHATWG]

A SHAPE — Encloses alternate text for a client-side image map and indicates the action for a certain area. Enclosed in MAP tags. (See AREA.) — [WDG] [WHATWG]

ABBR — Encloses text that is abbreviated (like int'l). Use the TITLE attribute to spell out the abbreviation. (Preferred over ACRONYM.) — [WDG] [WHATWG]

ACRONYM — Encloses text that is an acronym (like HTML). Use the TITLE attribute to spell out the acronym. (Use ABBR instead.) — [WDG] [WHATWG]

ADDRESS — Encloses the author's name and address (internet and/or physical addresses). — [WDG] [WHATWG]

APPLET — Encloses a small Java program (called an applet) to be run by the user's machine. Encloses PARAM tags. (Use SCRIPT or EMBED or OBJECT instead.) — [WDG] [WHATWG]

AREA — Indicates action for a certain area in a client-side image map. Enclosed in MAP tags. (See A SHAPE.) — [WDG] [WHATWG]

ARTICLE — Encloses part of the page that can stand alone as an independent document. A newer tag that may not work in all browsers. — [WDG] [WHATWG]

ASIDE — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

AUDIO — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

B — Encloses text to be rendered in bold. (Use STRONG instead, if appropriate.) — [WDG] [WHATWG]

BASE — Indicates default information for current document. Used by browsers to reconstruct partial links. Enclosed by HEAD tags. — [WDG] [WHATWG]

BASEFONT — Indicates default font characteristics for the rest of the document. (See FONT.) — [WDG] [WHATWG]

BDI — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

BDO — Encloses text to be rendered in a direction other than that of the rest of the document. — [WDG] [WHATWG]

BGSOUND — Indicates background sound to play automatically and annoy your visitors. (See OBJECT and EMBED.) — [HCT] [WHATWG]

BIG — Encloses text to be rendered in a slightly larger font: "Big Text / Normal Text." Not always obvious. (See FONT and SMALL.) — [WDG] [WHATWG]

BLINK — Encloses text that should blink and annoy your visitors. Universally detested. Do not use! (If that's not blinking, your browser doesn't support this tag.) — [HCT] [WHATWG]

BLOCKQUOTE — Encloses a long section of quoted text, typically rendered with indention and with white space above and below. (Use Q for brief quotes in the flow of the paragraph.) — [WDG] [WHATWG]

BODY — Encloses the body of the document, which is displayed. Declares default characteristics of document. (See HEAD.) — [WDG] [WHATWG]

BR — Indicates insertion of a line break. (See P, NOBR, and WBR.) — [WDG] [WHATWG]

BUTTON — Indicates insertion of a form button. (See INPUT TYPE="button".) — [WDG] [WHATWG]

CANVAS — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

CAPTION — Encloses text to become the caption for a table. First tag inside TABLE tags. — [WDG] [WHATWG]

CENTER — Encloses sections of text (including images & tables) to be centered. (See DIV.) — [WDG] [WHATWG]

CITE — Encloses the title of a work being cited, typically rendered in italics: "Louisa May Alcott wrote Little Women." (See BLOCKQUOTE and Q.) — [WDG] [WHATWG]

CODE — Encloses text that is part of a program, typically rendered in fixed-space font: "IF (A>B) THEN PRINT 'Correct!'". — [WDG] [WHATWG]

COL — Indicates formatting for a table column. — [WDG] [WHATWG]

COLGROUP — Encloses table columns (COL) to form a group with similar formatting. End tag is optional. — [WDG] [WHATWG]

DATA — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

DATALIST — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

DD — Encloses text to form the definition in a definition list (DL). End tag is optional. — [WDG] [WHATWG]

DEL — Encloses text that has been "removed" deleted. Use DATETIME attribute to indicate time of change. Not consistently rendered by browsers. (See INS and STRIKE.) — [WDG] [WHATWG]

DETAILS — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

DFN — Encloses a term that is being defined. "Puce is a rosy-grey shade of mauve." — [WDG] [WHATWG]

DIALOG — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

DIR — Encloses list items (LI) to create a directory list. — [WDG] [WHATWG]

DIV — Encloses text that shares formatting characteristics, thus dividing the body of the document into logical sections such as chapters. — [WDG] [WHATWG]

DL — Encloses terms (DT) and definitions (DD) to create a definition list. — [WDG] [WHATWG]

DT — Encloses the term being defined in a definition list (DL). End tag is optional. — [WDG] [WHATWG]

EM — Encloses text to be emhasized, typically rendered in italics: "I told him not to bother." (See STRONG.) — [WDG] [WHATWG]

EMBED — Indicates an object to be inserted into document. — [HCT] [WHATWG]

FIELDSET — Encloses form fields (INPUT, TEXTAREA, SELECT, BUTTON) that comprise a set. Enclosed within FORM tags. — [WDG] [WHATWG]

FIGURE — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

FIGCAPTION — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

FONT — Encloses text to be rendered in a different style, size, or color. (Using Cascading Style Sheets is the preferred method of specifying these styles.) — [WDG] [WHATWG]

FOOTER — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

FORM — Encloses form fields (INPUT, TEXTAREA, SELECT, BUTTON) to create a user-response form. — [WDG] [WHATWG]

FRAME — Indicates document to be displayed in a section of the screen. Enclosed within FRAMESET tags. — [WDG] [WHATWG]

FRAMESET — Encloses FRAME tags to define the screen layout. (See NOFRAMES.) — [WDG] [WHATWG]

H1 - H6 — Encloses text to become a heading or sub-heading, typically rendered in a large, bold font. H1 is the largest and H6 is the smallest. — [WDG] [WHATWG]

HEAD — Encloses the header section of the document, which is not displayed but conveys information used by browsers and search engines. Enclosed within HTML tags. (See BODY.) — [WDG] [WHATWG]

HEADER — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

HGROUP — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

HR — Indicates location to insert a line break, horizontal rule / line across the screen, and another line break. — [WDG] [WHATWG]


HTML — Encloses the entire HTML document. — [WDG] [WHATWG]

I — Encloses text to be rendered in italics. (Use EM, CITE, or VAR instead, if appropriate.) — [WDG] [WHATWG]

IFRAME — Indicates format and content of an in-line frame. (See FRAMESET and FRAME.) — [WDG] [WHATWG]

IMG — Indicates an image that is to be displayed, defined by the SRC attribute. — [WDG] [WHATWG]

IMG ISMAP — Indicates the image is an image map. — [WDG] [WHATWG]

IMG USEMAP — Indicates the image uses a client-side image map, defined with MAP and either A SHAPE or AREA tags. — [WDG] [WHATWG]

INPUT TYPE="button" — Indicates insertion of a button that acts like an image map to submit the form. Enclosed in FORM tags. (See BUTTON.) — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="checkbox" — Indicates insertion of a checkbox that allows the user to select several items: " ." Enclosed in FORM tags. (See INPUT TYPE=radio.) — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="color" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="date" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="datetime" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="datetime-local" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="email" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="file" — Indicates insertion of a field that allows the user to attach a file to the form: "Attach file: " Enclosed in FORM tags. — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="hidden" — Indicates insertion of a field that is not displayed but carries hidden information such as a customer number. Enclosed in FORM tags. — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="image" — Indicates insertion of a graphical submit button. Sends the coordinates to act as an image map. Enclosed in FORM tags. — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="month" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="number" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="password" — Indicates insertion of a text field where what the user types is automatically obscured. "Password: " Enclosed in FORM tags. — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="radio" — Indicates insertion of a radiobox that prevents the user from selecting more than one item in the group: "" Enclosed in FORM tags. (See INPUT TYPE=checkbox.) — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="range" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="reset" — Indicates insertion of a button that will return the form fields to their default values. "" Enclosed in FORM tags. — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="search" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="submit" — Indicates insertion of a button that will submit the form. "" Enclosed in FORM tags. (See INPUT TYPE=reset, INPUT TYPE=image, and BUTTON.) — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="tel" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="text" — Indicates insertion of a field where the user can type text on a single line. "" Enclosed in FORM tags. (See TEXTAREA). — [WDG] [WHATWG] [WHATWG]

INPUT TYPE="time" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="url" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INPUT TYPE="week" — Indicates insertion of a ======= that allows the user to ==============: "". A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

INS — Encloses text that has been inserted. Use DATETIME attribute to indicate time of change. (See DEL.) — [WDG] [WHATWG]

ISINDEX — Indicates that the document is a searchable index. This code is usually inserted by the server. You will probably never use this tag. — [WDG] [WHATWG]

KBD — Encloses text that is to be typed into the computer, typically rendered in fixed-space font: "At the C: prompt, type 'mkdir temp'." (See SAMP.) — [WDG] [WHATWG]

KEYGEN — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

LABEL — Form field label. — [WDG] [WHATWG]

LEGEND — Fieldset caption. — [WDG] [WHATWG]

LI — Encloses text to become an item in a list. Enclosed in one of: DIR, DL, MENU, OL, or UL. End tag is optional. — [WDG] [WHATWG]

LINK — Indicates a relationship to another document. Enclosed in HEAD tags and used by browsers and search engines. — [WDG] [WHATWG]

MAIN — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

MAP — Encloses either A SHAPE or AREA tags to define a client-side image map. — [WDG] [WHATWG]

MARK — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

MARQUEE — Encloses text to scroll and annoy your visitors. Not supported by all browsers: If yours supports it, the next line will move. — [HCT] [WHATWG]
Do not use!

MENU — Encloses list items (LI) to create a menu list. — [WDG] [WHATWG]

MENUITEM — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

META — Indicates information about the current document. Enclosed in HEAD tags and used by browsers and search engines. FYI: <META NAME="robots" CONTENT="noindex, follow"> will tell search engines not to index this page but to follow the links. — [WDG] [WHATWG]

METER — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

MULTICOL — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

NAV — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

NOBR — Encloses text that should not be "screen wrapped" by the browser. Beware of creating unprintable documents. (See WBR.) — [HCT] [WHATWG]

NOFRAMES — Encloses HTML codes that are to be displayed if the browser does not render 'frames'. (See FRAMESET and FRAME.) — [WDG] [WHATWG]

NOSCRIPT — Encloses HTML codes that are to be displayed if the browser does not run the script. (See SCRIPT.) — [WDG] [WHATWG]

OBJECT — Indicates insertion of the object defined with the DATA attribute. (See IMG and EMBED.) — [WDG] [WHATWG]

OBJECT USEMAP — Indicates insertion of the image map defined with the DATA attribute. (See IMG USEMAP.) — [WDG] [WHATWG]

OL — Encloses list items (LI) to form an ordered list, each item on a separate line and numbered sequentially. (See UL and DL.) — [WDG] [WHATWG]

OPTGROUP — Encloses OPTION tags and text that comprise an option group. Enclosed by SELECT and FORM tags. — [WDG] [WHATWG]

OPTION — Encloses text to form an item on a pull-down menu. Enclosed within SELECT and FORM tags. May also be enclosed in OPTGROUP tags. — [WDG] [WHATWG]

OUTPUT — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

P — Encloses text to form a paragraph, typically rendered with white space above and below. End tag usually omitted. (See BR.) — [WDG] [WHATWG]

PARAM — Indicates parameter information to pass to a script. Enclosed within APPLET tags. — [WDG] [WHATWG]

PICTURE — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

PLAINTEXT — Indicates that the rest of the document is to be treated as plain text with no HTML markup. There is NO WAY to shut it off. Although deprecated, there is no replacement for this feature. — [HCT] [WHATWG]

PRE — Encloses pre-formatted text, to be displayed in a fixed-with font with explicit white space. Useful for creating ascii-art and universally browser-friendly tables. — [WDG] [WHATWG]

PROGRESS — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

Q — Encloses a brief in-line quotation: "To be or not to be?" Use the CITE attribute to indicate location of original text. (Use BLOCKQUOTE for long quotes, set apart.) — [WDG] [WHATWG]

RP — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

RT — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

RUBY — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

S — Encloses text to be rendered in strike-out font. Not supported by all browsers. (See DEL and STRIKE.) — [WDG] [WHATWG]

SAMP — Encloses text that is a sample of computer output, typically rendered in fixed-space font: "General Protection Fault" (See KBD.) — [WDG] [WHATWG]

SCRIPT — Encloses a small program called a script. (Preferred over APPLET.) — [WDG] [WHATWG]

SECTION — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

SELECT — Encloses OPTION tags and maybe OPTGROUP tags to create a pull-down menu. Enclosed within FORM tags. — [WDG] [WHATWG]

SERVER — Indicates a server script. (Use SCRIPT instead.) — [HCT] [WHATWG]

SMALL — Encloses text to be rendered in a slightly smaller font: "Small Text / Normal Text". Isn't always obvious. (See FONT and BIG.) — [WDG] [WHATWG]

SOURCE — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

SPAN — Encloses an in-line section of text with similar formatting. (See DIV.) — [WDG] [WHATWG]

STRIKE — Encloses text to be rendered in strike-out font. Not supported by all browsers. (See DEL and S.) — [WDG] [WHATWG]

STRONG — Encloses strongly emphasized text, typically rendered in bold: "GeoCities offers FREE homepages!!" (See EM.) — [WDG] [WHATWG]

STYLE — Indicates the associated style sheet containing formatting information. — [WDG] [WHATWG]

SUB — Encloses subscripted text: " H 2 O ". (See SUP.) — [WDG] [WHATWG]

SUMMARY — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

SUP — Encloses superscripted text: " e = mc2 ". (See SUB.) — [WDG] [WHATWG]

TABLE — Encloses table tags (CAPTION, THEAD, TR, TH, TBODY, TD, TFOOT) to create a table. — [WDG] [WHATWG]

TBODY — Encloses TR and TD tags to create divisions within the body of a table. (See TABLE, THEAD, and TFOOT.) — [WDG] [WHATWG]

TD — Encloses text to be displayed in a table cell. Enclosed by by TABLE tags and TR tags. End tag optional, but recommended for nested tables. (See TH.) — [WDG] [WHATWG]

TEMPLATE — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

TEXTAREA — Encloses default text to fill a multi-row text field as part of a form. Enclosed by FORM tags. (See INPUT TYPE=text). — [WDG] [WHATWG]

TFOOT — Encloses TR and TD tags to create the footer of a table. End tag optional. Enclosed by TABLE tags. (See THEAD and TBODY.) — [WDG] [WHATWG]

TH — Enclosed text that acts as a heading in a table. Enclosed by TABLE tags and TR tags. End tag optional, but recommended for nested tables. — [WDG] [WHATWG]

THEAD — Encloses TH, TR, and TD tags to create the header section of a table. Enclosed by TABLE tags. (See TBODY and TFOOT.) — [WDG] [WHATWG]

TIME — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

TITLE — Encloses the title of the current document, used by browsers and search engines and for bookmark labeling. Enclosed by HEAD tags. — [WDG] [WHATWG]

TR — Encloses TH and TD tags to create a table row. Enclosed by TABLE tags. End tag optional, but recommended for nested tables. — [WDG] [WHATWG]

TRACK — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

TT — Encloses text to be rendered in a fixed-spaced, typewriter font. (Use KBD, SAMP, or CODE instead, if appropriate.) — [WDG] [WHATWG]

U — Encloses text to be rendered underlined. Generally avoided due to confusion with underlined links. (Use EM or STRONG instead for emphasis.) — [WDG] [WHATWG]

UL — Encloses list items (LI) to create an unordered list, each item on a separate line and accentuated with a bullet. — [WDG] [WHATWG]

VAR — Encloses text that is a variable name, typically rendered in italics: "The program uses age to store the user's age." — [WDG] [WHATWG]

VIDEO — Encloses ========. A newer tag that may not work in all browsers. (See ======.) — [WHATWG]

WBR — Indicates an acceptable place to insert a line break within a section of NOBR text. (See PRE.) — [WHATWG]








Attribute Descriptions

NOTE:

_____ (!DOCTYPE)
Formal name and location of DTD specification.

ABBR (TH)
Provides an abbreviation for a table header cell, if needed.

ACCEPT (FORM)
List of MIME types to accept.

ACCEPT-CHARSET (FORM)
List of supported character sets.

ACCESSKEY (A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA)
Accessibility key character for special browsers for the blind.

ACTION (FORM)
URL to process the server-side form.

ALIGN (APPLET, COL, COLGROUP, DIV, H1 - H6, HR, IFRAME, IMG, INPUT, LEGEND, OBJECT, P, TABLE)
Horizontal alignment.

ALIGN (CAPTION)
Location of caption, relative to table.

ALIGN (TBODY, TD, TFOOT, TH, THEAD, TR)
Horizontal text alignment for the cells in a table.

ALINK (BODY)
Color of active links.

ALT (A SHAPE,APPLET, AREA, IMG, INPUT, OBJECT)
Short description which should be displayed if browser cannot display the item. Displayed as tool-tips by many browsers.

ARCHIVE (APPLET, OBJECT)
Associated archive(s).

AXIS (TD, TH)
Comma-separated list of related table headers.

BACKGROUND (BODY, COL, COLGROUP, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR)
Image to tile in the background.

BGCOLOR (BODY, TABLE, TD, TH, TR)
Color to display in the background.

BGPROPERTIES (BODY)
Make background image a watermark (fixed background image with text scrolling over it).

BORDER (FRAMESET, IMG, OBJECT)
Width of border in pixels.

BORDER (TABLE)
When set equal to a number, it is the width of the table border in pixels. Used alone, it becomes a flag to display the default table border.

BORDERCOLOR (FRAME, FRAMESET, TABLE)
Color of border.

BORDERCOLORDARK (TABLE)
Color of table border shadow.

BORDERCOLORLIGHT (TABLE)
Color of table border highlight.

CELLPADDING (TABLE)
Spacing within table cells.

CELLSPACING (TABLE)
Spacing between table cells.

CHAR (COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR)
Alignment character used to line up the decimals (for example) in a column of numbers.

CHAROFF (COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR)
Flag to override the character alignment previously set.

CHARSET (A, LINK, SCRIPT)
Character encoding of the linked resource.

CHECKED (INPUT TYPE="checkbox", INPUT TYPE="radio")
Flag to indicate the starting condition of checkboxes and radiobuttons in a form.

CITE (BLOCKQUOTE, Q)
URL of quoted source.

CITE (DEL, INS)
URL of comments explaining changes.

CLASS (All elements that take core attributes)
Class(es) of style for display purposes.

CLASSID (OBJECT)
URL of object class.

CLEAR (BR)
Edge(s) to be cleared with line break.

CODE (APPLET)
Applet class file.

CODEBASE (APPLET)
Optional base URL for applet.

CODEBASE (OBJECT)
Base URL for CLASSID, DATA, and ARCHIVE attributes.

CODETYPE (OBJECT)
Content type for object code.

COLOR (BASEFONT, FONT)
Text color.

COLS (FRAMESET)
List of column lengths.

COLS (TEXTAREA)
Width of TEXTAREA box, in characters.

COLSPAN (TD, TH)
Number of columns spanned by table cell.

COMPACT (DIR, DL, MENU, OL, UL)
Flag indicating to reduce interim spacing in a list.

CONTENT (META)
Brief information about the current document (200 characters or less).

COORDS (A, AREA)
Set of coordinates for defining regions of an image map.

DATA (OBJECT)
URL of object's data.

DATETIME (DEL, INS)
Date and time of change.

DECLARE (OBJECT)
Flag to declare but not instantiate object.

DEFER (SCRIPT)
Defer execution of script.

DIR (BDO, and all elements that take the DIR attribute)
Direction of text.

DISABLED (BUTTON, INPUT, OPTGROUP, OPTION, SELECT, TEXTAREA)
Flag to indicate that the choice is unavailable in this context.

DYNSRC (IMG)
URL of a movie file.

ENCTYPE (FORM)
Type of encoding for form submission.

FACE (BASEFONT, FONT)
Preferred font names in order of preference.

FOR (LABEL)
Declare field ID.

FRAME (TABLE)
Indicate which parts of table frame to display.

FRAMEBORDER (FRAME, FRAMESET, IFRAME)
Indicate if border of frame is to be displayed.

FRAMESPACING (FRAMESET)
Spacing between frames.

HEADERS (TD, TH)
Related ID(s) of header cell.

HEIGHT (APPLET, EMBED, IFRAME, IMG, OBJECT, TD, TH)
Vertical height, in pixels.

HREF (A, AREA, LINK)
URL of linked resource.

HREF (BASE)
Base URL, used for reconstructing partial links.

HREFLANG (A, LINK)
Language code of linked resource.

HSPACE (APPLET, IMG, OBJECT)
Width of horizontal gutter.

HTML (!DOCTYPE)
Flag that declares document to be written in HTML.

HTTP-EQUIV (IMG, META, OBJECT)
Name of HTTP response header. See also META NAME for more options.

ID (All elements that take core attributes)
Document-wide unique ID, used by scripts and anchors.

INFINTE (BGSOUND)
Flag causing background sound to repeat infinitely and annoy your visitors.

ISMAP (IMG, INPUT TYPE="button")
Flag to indicate that the image is an image map.

LABEL (OPTGROUP, OPTION)
For use in hierarchical menus.

LANG (All elements that take the LANG attribute)
Language code.

LANGUAGE (SCRIPT)
Declare scripting language name.

LINK (BODY)
Color of links.

LONGDESC (FRAME, IFRAME, IMG)
URL containing long description of item.

LOOP (BGSOUND, IMG)
Number of times to repeat sound or animation and thereby annoy your visitors.

LOWSRC (IMG)
URL of low-resolution image to load first and display while loading the regular image.

MARGINHEIGHT (FRAME, IFRAME)
Vertical size of margin.

MARGINWIDTH (FRAME, IFRAME)
Horizontal size of margin.

MAXLENGTH (INPUT TYPE="text", INPUT TYPE="file", INPUT TYPE="password")
Maximum number of characters permitted in form field.

MEDIA (LINK, STYLE)
Associated media type.

METHOD (FORM)
HTTP method used to submit this form.

MULTIPLE (SELECT)
Flag to allow multiple options to be selected.

NAME (A)
Document-wide unique anchor ID, referred to in linking.

NAME (APPLET, FORM, IMG, OBJECT)
Name used in scripting.

NAME (BUTTON, INPUT, SELECT, TEXTAREA)
Name of form field, passed to server when submitted. Paired with user's responses.

NAME (FRAME, IFRAME)
Name of frame, used in targetting.

NAME (MAP)
Name of client-side image map, referred to by USEMAP attribute.

NAME (META, PARAM)
Name of property or information.

NOHREF (A SHAPE, AREA)
Flag to indicate that this region of the image map has no associated link.

NORESIZE (FRAME)
Flag indicating that user cannot adjust frame size. Potential problem for the visually impaired (who use very large fonts).

NOSHADE (HR)
Flag to render horizontal rule without 3-D engraved look.

NOWRAP (TD, TH)
Flag to render cell contents without word wrapping. Beware of accidentally creating incredibly huge tables.

OBJECT (APPLET)
URL of script / program.

ONBLUR (A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA)
URL of script to run when the element loses the focus.

ONCHANGE (INPUT, SELECT, TEXTAREA)
URL of script to run when the value of this field is changed.

ONCLICK (All elements that take event attributes)
URL of script to run when pointer is clicked over this element.

ONDBLCLICK (All elements that take event attributes)
URL of script to run when pointer is double-clicked over this element.

ONFOCUS (A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA)
URL of script to run when this element gets the focus.

ONKEYDOWN (All elements that take event attributes)
URL of script to run when this element is in focus and a key is pressed.

ONKEYPRESS (All elements that take event attributes)
URL of script to run when this element is in focus and a key is pressed and released.

ONKEYUP (All elements that take event attributes)
URL of script to run when this element is in focus and a key is released.

ONLOAD (BODY)
URL of script to run when document has finished loading.

ONLOAD (FRAMESET)
URL of script to run when all the frames have finished loading.

ONMOUSEDOWN (All elements that take event attributes)
URL of script to run when mouse button is pressed over this element.

ONMOUSEMOVE (All elements that take event attributes)
URL of script to run when this element is in focus and the mouse is moved.

ONMOUSEOUT (All elements that take event attributes)
URL of script to run when mouse is moved away from this element.

ONMOUSEOVER (All elements that take event attributes)
URL of script to run when mouse is moved over this element.

ONMOUSEUP (All elements that take event attributes)
URL of script to run when mouse button is released over this element.

ONRESET (FORM)
URL of script to run when the form is reset.

ONSELECT (INPUT, TEXTAREA)
URL of script to run when some text is selected in the form field.

ONSUBMIT (FORM)
URL of script to run when the form is submitted.

POINT-SIZE (FONT)
Point size of font.

PROMPT (HEAD)
URL of named dictionary of metainformation.

PROMPT (ISINDEX)
Prompt message for searchable database.

PUBLIC (!DOCTYPE)
Flag declares that the HTML DTD for this document is available to the public (?).

READONLY (INPUT TYPE="password", INPUT TYPE="text", TEXTAREA)
Flags field to prevent user changes.

REL (A, LINK)
Relationship of link to current document.

REV (A, LINK)
Relationship of current document to link.

ROWS (FRAMESET)
Lengths to divide screen into rows of frames.

ROWS (TEXTAREA)
Height of TEXTAREA box, in rows of characters.

ROWSPAN (TD, TH)
Number of rows spanned by table cell.

RULES (TABLE)
Rulings to display between table rows and columns.

SCHEME (META)
Select form of content.

SCOPE (TD, TH)
Scope of cells to which heading refers.

SCROLLING (FRAME, IFRAME)
Allow frame scrolling or not.

SELECTED (OPTION)
Flag to indicate that the option is initally selected.

SHAPE (A, AREA)
Shape for interpretation of COORDS attribute to define a region in an image map.

SIZE (BASEFONT, FONT)
Explicit or relative size of font.

SIZE (HR)
Thickness of horizontal rule, in pixels.

SIZE (INPUT TYPE="file", INPUT TYPE="password", INPUT TYPE="text")
Number of characters wide that the form field should display.

SIZE (SELECT)
Number of options to remain visible on a pull-down menu.

SPAN (COL, COLGROUP)
Number of columns for attributes to affect.

SRC (BGSOUND, EMBED, FRAME, IFRAME, IMG, INPUT TYPE="button", LINK, SCRIPT)
URL of associated file.

STANDBY (OBJECT)
Message to display while object is loading.

START (IMG)
Seconds to delay image animation (?).

START (OL)
Starting number for ordered list.

STYLE (All elements that take core attributes)
URL of associated style sheet.

SUMMARY (TABLE)
Purpose and structure of table for use with speech browsers.

TABINDEX (A, AREA, BUTTON, INPUT, OBJECT, SELECT, TEXTAREA)
Order in which to focus by pressing the tab key.

TARGET (A, AREA, BASE, FORM, LINK)
Frame in which to display associated document.

TEXT (BODY)
Default color for document text.

TID (TD, TH)
Cell 'ID', for use with HEADERS and SCOPE attributes.

TITLE (All elements that take the TITLE attribute)
Advisory title.

TYPE (A, LINK, OBJECT)
Content type for linked resource.

TYPE (BUTTON)
Type of form button.

TYPE (INPUT)
Type of form field.

TYPE (LI, OL, UL)
List item style.

TYPE (PARAM)
Content type for value when VALUETYPE="ref".

TYPE (SCRIPT, STYLE)
Type of language used in associated file.

USEMAP (IMG, INPUT, OBJECT)
Name of client-side image map to use.

VALIGN (COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR)
Vertical alignment of associated table cells.

VALUE (BUTTON, INPUT TYPE="button", INPUT TYPE="checkbox", INPUT TYPE="radio", OPTION)
Value to be submitted with form.

VALUE (INPUT TYPE="password", INPUT TYPE="text")
Initial value of form field.

VALUE (INPUT TYPE="reset", INPUT TYPE="submit")
Button label.

VALUE (LI)
Override sequence number for this and all subsequent list items.

VALUE (PARAM)
Property value.

VALUETYPE (PARAM)
Type indicating how to interpret parameter value.

VERSION (HTML)
Version of HTML used to construct current document. Use !DOCTYPE tag instead.

VLINK (BODY)
Color of visited links.

VSPACE (APPLET, IMG, OBJECT)
Vertical size of gutter.

WEIGHT (FONT)
Weight of font to use. Not supported by all browsers.

WIDTH (APPLET)
Initial width of applet window.

WIDTH (COL, COLGROUP)
Width of associated table columns.

WIDTH (EMBED, IMG, OBJECT)
Forced width of an embedded object / image.

WIDTH (HR, TABLE)
Width in pixels or as a percentage of screen width.

WIDTH (IFRAME)
Width of in-line frame.

WIDTH (PRE)
Width of pre-formatted text, in characters. Not supported by all browsers.

WIDTH (TD, TH)
Width of table cell in pixels or as a percentage of table width.

WRAP (TEXTAREA)
Text wrapping style.








Common Attributes

The following attributes can be used in almost all elements, so it is shorter to list the elements in which they can't be used:








Acceptable Attribute Values and Data Types

NOTES:

align = { left | center | right }

alignj = { left | center | right | justify }

buttontype = { submit | reset | button }

CAlign = { top | bottom | left | right }

Character = ( single character )

Charset = ( See Charset list. )

Charsets = ( space-separated list of Charsets. )

clear = { none | left | all | right }

Color = { #(RRGGBB) | black | gray | silver | white | maroon | red | purple | fuchsia | green | lime | olive | yellow | navy | blue | teal | aqua }
... for red, green, and blue codes: FF=100%, CC=80%, 99=60%, 66=40%, 33=20%, 00=0%.
See also the WDG Color Chart.

ContentType = ( See ContentType list. )

Coords = [ CIRCLE: (Xcenter,Ycenter,radius) | RECT: (Xleft,Ytop,Xright,Ybottom) | POLY: (X1,Y1,X2,Y2,X3,Y3,...) ]

Datetime = [ (YYYY)-(MM)-(DD)T(hh):(mm):(ss)(TZD)]

dir = { ltr | rtl }

DTD = { "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3/org/TR/html4/loose.dtd" | "-//W3C//DTD HTML 4.0//EN" "http://www.w3/org/TR/html4/strict.dtd"}

EncType = ( See EncType list. )

entity = { #(isocode) | lt | gt | amp | quot | reg | copy | nbsp | (many others) }

framediv = { (pixels) | (% of screen) }

FrameTarget = { (customname) | _blank | _self | _parent | _top }
... special targets are respectively: new window, current window, parent window, and escape frames in current browser.

http-equiv = { Content-Type | Content-Script-Type | Content-Style-Type | reply-to | expires | refresh }

ialign = { top | middle | bottom | left | right | absmiddle | baseline | absbottom }

InputType = { text | password | checkbox | radio | file | button | image | hidden | reset | submit }

LAlign = { top | bottom | left | right }

LanguageCode = ( See LanguageCode list. )

Length = { (pixels) | (% of screen) }

lengthc = { (pixels) | (% of cell) }

lengthr = { (pixels) | (% of table) | (relative width)* }

LinkTypes = { Alternate | Stylesheet | Start | Next | Prev | Previous | Contents | ToC | Index | Glossary | Copyright | Chapter | Section | Subsection | Appendix | Help | Bookmark | (custom type) }

LIStyle = { OL: { 1 | A | a | I | i } | UL: { disc | circle | square} }

MediaDesc = { all | screen | tty | tv | projection | handheld | print | braille | aural }

metavalues = { comma-separated list of { index | noindex | follow | nofollow | all | none } ALL=index,follow, NONE=noindex, nofollow.

method = { get | post }

MultiLength = { (pixels) | (% of screen/table) | (relative width)* }

MultiLengths = ( comma-separated list of { (pixels) | (% of screen/table) | (relative width)* } . )

name = { keywords | description | author | reply-to | expires | refresh | Content-Type | Content-Script-Type | Content-Style-Type | (custom field) } Capitalized items can be used with HTTP-EQUIV instead.

OLStyle = { A | a | I | i | 1 }

scope = ( # of columns spanned )

scrolling = { yes | auto | no }

Shape = { rect | circle | poly | default }

size = { 1 | 2 | 3 | 4 | 5 | 6 | 7 }

sizer = { 1 | 2 | 3 | 4 | 5 | 6 | 7 | -6 | -5 | -4 | -3 | -2 | -1 | +1 | +2 | +3 | +4 | +5 | +6 }

StyleSheet = ( style sheet URL )

tabindex = ( positive integer )

talign = { left | center | right | justify | char }

TFrame = { void | above | below | hsides | lhs | rhs | vsides | box | border }

TRules = { none | groups | rows | cols | all }

type = { button | reset | submit }

ULStyle = { disc | circle | square }

valign = { top | middle | bottom | baseline }

valuetype = { data | ref | object }

version = { 1.0 | 2.0 | 3.0 | 3.2 | 4.0 }

width = { (pixels) | (% of screen) }

widtht = { (pixels) | (% of table) }

wrap = { off | hard | soft }

yn = { yes | no }










Sunshine HTML Resource HEAD | BODY | Forms | Frames | Images | Layout | Links | Lists | Tables | Text: Logical & Physical

TAGS | ATTRIBUTES ( Common ) | VALUES       ENTITIES       INFO | HELP | AUTHOR

Tell me what you think! © Sunny Snaith    Post Office Box 681727, Fort Payne, AL 35968
http://sunshinehtml.com/notes.html     Last revision:  April 16, 2015