HTML 4.01 Specification (original) (raw)
Abstract
This specification defines the HyperText Markup Language (HTML), the publishing language of the World Wide Web. This specification defines HTML 4.01, which is a subversion of HTML 4. In addition to the text, multimedia, and hyperlink features of the previous versions of HTML (HTML 3.2 [HTML32] and HTML 2.0 [RFC1866]), HTML 4 supports more multimedia options, scripting languages, style sheets, better printing facilities, and documents that are more accessible to users with disabilities. HTML 4 also takes great strides towards the internationalization of documents, with the goal of making the Web truly World Wide.
HTML 4 is an SGML application conforming to International Standard ISO 8879 -- Standard Generalized Markup Language [ISO8879].
Status of this document
This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C.
This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation.
This specification is a Superseded Recommendation. A newer specification exists that is recommended for new adoption in place of this specification. New implementations should follow the latest version of the HTML specification.
A list of current W3C Recommendations and other technical documents can be found at https://www.w3.org/TR/.
Available languages
The English version of this specification is the only normative version. However, for translations of this document, see http://www.w3.org/MarkUp/html4-updates/translations.
Errata
The list of known errors in this specification is available at:
http://www.w3.org/MarkUp/html4-updates/errata
Quick Table of Contents
- About the HTML 4 Specification
- Introduction to HTML 4
- On SGML and HTML
- Conformance: requirements and recommendations
- HTML Document Representation - Character sets, character encodings, and entities
- Basic HTML data types - Character data, colors, lengths, URIs, content types, etc.
- The global structure of an HTML document - The HEAD and BODY of a document
- Language information and text direction - International considerations for text
- Text - Paragraphs, Lines, and Phrases
- Lists - Unordered, Ordered, and Definition Lists
- Tables
- Links - Hypertext and Media-Independent Links
- Objects, Images, and Applets
- Style Sheets - Adding style to HTML documents
- Alignment, font styles, and horizontal rules
- Frames - Multi-view presentation of documents
- Forms - User-input Forms: Text Fields, Buttons, Menus, and more
- Scripts - Animated Documents and Smart Forms
- SGML reference information for HTML - Formal definition of HTML and validation
- SGML Declaration of HTML 4
- Document Type Definition
- Transitional Document Type Definition
- Frameset Document Type Definition
- Character entity references in HTML 4
- Changes
- Performance, Implementation, and Design Notes
Full Table of Contents
- About the HTML 4 Specification
- Introduction to HTML 4
- On SGML and HTML
- Conformance: requirements and recommendations
- HTML Document Representation - Character sets, character encodings, and entities
- Basic HTML data types - Character data, colors, lengths, URIs, content types, etc.
- The global structure of an HTML document - The HEAD and BODY of a document
- Language information and text direction - International considerations for text
- Text - Paragraphs, Lines, and Phrases
- Lists - Unordered, Ordered, and Definition Lists
- Introduction to lists
- Unordered lists (UL), ordered lists (OL), and list items (LI)
- Definition lists: the DL, DT, and DD elements
- The DIR and MENU elements
- Tables
- Introduction to tables
- Elements for constructing tables
- The TABLE element
* Table directionality - Table Captions: TheCAPTION element
- Row groups: the THEAD, TFOOT, and TBODY elements
- Column groups: theCOLGROUP and COLelements
* The COLGROUP element
* The COL element
* Calculating the number of columns in a table
* Calculating the width of columns - Table rows: The TR element
- Table cells: TheTH and TD elements
* Cells that span several rows or columns
- The TABLE element
- Table formatting by visual user agents
- Table rendering by non-visual user agents
- Sample table
- Links - Hypertext and Media-Independent Links
- Introduction to links and anchors
- The A element
- Document relationships: the LINK element
- Path information: theBASE element
- Objects, Images, and Applets
- Introduction to objects, images, and applets
- Including an image: the IMG element
- Generic inclusion: theOBJECT element
- Including an applet: the APPLET element
- Notes on embedded documents
- Image maps
- Visual presentation of images, objects, and applets
- How to specify alternate text
- Style Sheets - Adding style to HTML documents
- Introduction to style sheets
- Adding style to HTML
- External style sheets
- Cascading style sheets
- Hiding style data from user agents
- Linking to style sheets with HTTP headers
- Alignment, font styles, and horizontal rules
- Formatting
- Fonts
- Rules: the HR element
- Frames - Multi-view presentation of documents
- Introduction to frames
- Layout of frames
- Specifying target frame information
- Alternate content
- Inline frames: theIFRAME element
- Forms - User-input Forms: Text Fields, Buttons, Menus, and more
- Introduction to forms
- Controls
- The FORM element
- The INPUT element
- The BUTTON element
- The SELECT, OPTGROUP, and OPTION elements
- The TEXTAREA element
- The ISINDEX element
- Labels
- Adding structure to forms: the FIELDSET and LEGEND elements
- Giving focus to an element
- Disabled and read-only controls
- Form submission
- Form submission method
- Successful controls
- Processing form data
* Step one: Identify the successful controls
* Step two: Build a form data set
* Step three: Encode the form data set
* Step four: Submit the encoded form data set - Form content types
* application/x-www-form-urlencoded
* multipart/form-data
- Scripts - Animated Documents and Smart Forms
- Introduction to scripts
- Designing documents for user agents that support scripting
- Designing documents for user agents that don't support scripting
- SGML reference information for HTML - Formal definition of HTML and validation
- Document Validation
- Sample SGML catalog
- SGML Declaration of HTML 4
- SGML Declaration
- Document Type Definition
- Transitional Document Type Definition
- Frameset Document Type Definition
- Character entity references in HTML 4
- Introduction to character entity references
- Character entity references for ISO 8859-1 characters
- Character entity references for symbols, mathematical symbols, and Greek letters
- Character entity references for markup-significant and internationalization characters
- Changes
- Changes between 24 April 1998 HTML 4.0 and 24 December 1999 HTML 4.01 versions
- Changes to the specification
* General changes
* On SGML and HTML
* HTML Document Representation
* Basic HTML data types
* Global structure of an HTML document
* Language information and text direction
* Tables
* Links
* Objects, Images, and Applets
* Style Sheets in HTML Documents
* Frames
* Forms
* SGML Declaration
* Strict DTD
* Notes
* References - Errors that were corrected
- Minor typographical errors that were corrected
- Clarifications
- Known Browser problems
- Changes to the specification
- Changes between 18 December 1997 and 24 April 1998 versions
- Changes between HTML 3.2 and HTML 4.0 (18 December 1997)
- Changes to elements
* New elements
* Deprecated elements
* Obsolete elements - Changes to attributes
- Changes for accessibility
- Changes for meta data
- Changes for text
- Changes for links
- Changes for tables
- Changes for images, objects, and image maps
- Changes for forms
- Changes for style sheets
- Changes for frames
- Changes for scripting
- Changes for internationalization
- Changes to elements
- Changes between 24 April 1998 HTML 4.0 and 24 December 1999 HTML 4.01 versions
- Performance, Implementation, and Design Notes