Types in HTML
List of types
Sequence of characters from the document's character set that may include character entities.
A single character from the document's character set. Single characters may be specified with a
character entity reference (e.g., "&").
A color value may either be a hexadecimal number (prefixed by a hash mark) or one of the following sixteen color names. The color names are case-insensitive.
- Black = "#000000"
- Green = "#008000"
- Silver = "#C0C0C0"
- Lime = "#00FF00"
- Gray = "#808080"
- Olive = "#808000"
- White = "#FFFFFF"
- Yellow = "#FFFF00"
- Maroon = "#800000"
- Navy = "#000080"
- Red = "#FF0000"
- Blue = "#0000FF"
- Purple = "#800080"
- Teal = "#008080"
- Fuchsia = "#FF00FF"
- Aqua = "#00FFFF"
The hexadecimal numbers are constructed with RGB (red, green, blue) format, this means that the two first characters describes the red value, the two second the green and the two third the blue.
Designates a point in the timeline. The format must be as follows:
YYYY-MM-DDThh:mm:ss
TZDWhere:
- YYYY = four-digit year
- MM = two-digit month (01=January, etc.)
- DD = two-digit day of month (01 through 31)
- hh = two digits of hour (00 through 23) (am/pm NOT allowed)
- mm = two digits of minute (00 through 59)
- ss = two digits of second (00 through 59)
- TZD = time zone designator
The value for the time zone designator (TZD) must be one of the following:
- Z = Indicates the UTC and must be uppercase.
- +hh:mm = Indicates a local time wich is hh hours and mm minutes ahead of UTC.
- -hh:mm = Indicates a local time wich is hh hours and mm minutes behind of UTC.
frame target names must begin with a letter ([A-Z] or [a-z]). The names specified below are reserved and have special meanings.
- _blank: opens the document in a new window.
- _self: opens the document in the same frame of the referer element.
- _parent: opens the document in the parent frameset of the current frame. If there is no parent frameset, this works like "_self".
- _top: opens the document in the window of the referer element, breaking the actual frame structure. If there is no parent frameset, this works like "_self".
The idref type is a reference to a ID token defined in other attributes.
A code refering to a specific languaje acording to the
language codes table.
May be measured in number of pixels or as percentage of the available space.
A value from the list below:
- Alternate: Designates substitute versions for the actual document. Used together with the lang attribute implies a translated version of the document. Used together with the media attribute, implies a version designed for a different medium (or media).
- Stylesheet: An external style sheet and is used together with the link type "Alternate" for user-selectable alternate style sheets.
- Start: The first document in a collection and tells search engines which document is considered the starting point by the author.
- Next: The next document in a linear sequence of documents.
- Prev: The previous document in an ordered series of documents.
- Contents: A document serving as a table of contents.
- Index: A document providing an index for the current document.
- Glossary: A document providing a glossary of terms that pertain to the current document.
- Copyright: A copyright statement for the current document.
- Chapter: A document serving as a chapter in a collection of documents.
- Section: A document serving as a section in a collection of documents.
- Subsection: A document serving as a subsection in a collection of documents.
- Appendix: A document serving as an appendix in a collection of documents.
- Help: A document offering help (more information, links to other sources information, etc.).
- Bookmark: A bookmark. A bookmark is a link to a key entry point within an extended document.
A value from the list below:
- screen: Intended for non-paged computer screens.
- tty: Intended for media using a fixed-pitch character grid, such as teletypes, terminals, or portable devices with limited display capabilities.
- tv: Intended for television-type devices (low resolution, color, limited scrollability).
- projection: Intended for projectors.
- handheld: Intended for handheld devices (small screen, monochrome, bitmapped graphics, limited bandwidth).
- print: Intended for paged, opaque material and for documents viewed on screen in print preview mode.
- braille: Intended for braille tactile feedback devices.
- aural: Intended for speech synthesizers.
- all: Suitable for all devices.
The value may be a lenght or a relative lenght. A relative lenght works exactly like percentage values but they do it over the space that's left. This means that the browser first assigns the space for all lenght values and then divides what's left between the relative lenghts. The notation for this value is "i*", where i is an integer. The sum of all the "i" values is equivalent to 100%.
Must begin with a letter ([A-Z] or [a-z]) and may be followed by letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
Must contain at least one digit ([0-9]).
An integer representing the number of pixels of the canvas (screen, paper).
The style sheet data is a specific type and is not evaluated by browsers as
HTML markup.
Text strings that are suposed to be "human readable", mostly used to be shown somewhere in the browser.
See the
URI and URL definition. In general are case-sensitive. There may be URIs, or parts of them, where case doesn't matter (like machine names), but identifying these cases may not be easy. It's recomended to consider them as case-sensitives to avoid errors.
Case sensitivity reference
CS
The value is case-sensitive. The browser interpret "a" and "A" as different values.
CI
The value is case-insensitive. The browser interpret "a" and "A" as the same value.
CN
The value is not subject to case changes.
CA
The element or attribute definition itself gives case information.
CT
Consult the type definition for details about case-sensitivity.