HTML 4.01
Anchor
Syntax: < A >...< /A >
Start tag: Required
End tag: Required
Attribute Specifications
- name = Gives the anchor a name so that it can be the destination of another link (ie: it marks that section of the page). This attribute shares the same name space as the id attribute.
- href = Creates a link. The value of this attribute is the location of the file to create a link to.
- hreflang = Specifies the base language of the file the href attribute links to. This attribute can only be used when href is specified.
- type = Specifies the content type [MIMETYPE] of the file the href attribute links to. A web browser linking to the file uses the content type to determine how it should be handled.
rel = Describes the relationship between the current document and the file being linked. The value of this attribute is a list of link types separated by spaces.
- rev = Provides a list of link types separated by spaces that specifies the reverse link from the anchor (as defined by the href attribute) to the current document.
- charset = Specifies the character encoding of the file being linked to.
Abbreviated Form
Syntax: < ABBR >...< /ABBR >
Start tag: Required
End tag: Required
Attribute Specifications: (none)
Document Base URI
Syntax: < BASE >
Start tag: Required
End tag: Forbidden
Attribute Specifications
- href = Specifies the absolute URI. It acts as the base URI, from where other URIs can be resolved.
- target = Specifies the name of the frame where the document is to be opened. This attribute's value must either be a name or a reserved name as defined in the Frame Target Names section.
Code
Syntax: < CODE >...< /CODE >
Start tag: Required
End tag: Required
Attribute Specifications: (none)
Other Attributes
- id, class (element identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout,
- onkeypress, onkeydown, onkeyup (intrinsic events)
Directory List
The DIR element is deprecated, along with all its attributes
Syntax: < DIR >...< /DIR >
Start tag: Required
End tag: Required
Attribute Specifications
- compact = Requests that the browser should render the list compactly.
Other Attributes
- id, class (element identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Label
Syntax: < LABEL >...< /LABEL >
Start tag: Required
End tag: Required
Attribute Specifications
- for = Associates the label with another control. The value of this attribute must be equivalent to the value of an id attribute of a control in the same document.
- accesskey = Assigns an access key to the element. When the access key is pressed, the element gets the focus.
Style Information
Syntax: < STYLE >...< /STYLE >
Start tag: Required
End tag: Required
Attribute Specifications
- type = Specifies the style sheet language of the element's contents (eg: "text/css").
- media = Specifies the intended destination medium for the style information. Possible values include:
- screen: Intended for non-paged computer screens.
- tty: Intended for a fixed-pitch character grid (eg: portable devices with limited display capabilities).
- tv: Intended for television-type devices.
- projection: For projectors
- handheld: For handheld devices.
- print: Paged documents to be viewed on screen in print preview.
- braille: For braille tactile feedback devices
- aural: Intended for speech synthesisers
|