HTML 4.0 Specification (original) (raw)
next table of contents elements attributes index
W3C Recommendation 18-Dec-1997
This version:
http://www.w3.org/TR/REC-html40-971218
Latest version:
http://www.w3.org/TR/REC-html40
Previous version:
http://www.w3.org/TR/PR-html40-971107
Editors:
Dave Raggett <dsr@w3.org>
Arnaud Le Hors <lehors@w3.org>
Ian Jacobs <ij@w3.org>
Abstract
This specification defines the HyperText Markup Language (HTML), version 4.0, the publishing language of the World Wide Web. In addition to the text, multimedia, and hyperlink features of the previous versions of HTML, HTML 4.0 supports more multimedia options, scripting languages, style sheets, better printing facilities, and documents that are more accessible to users with disabilities. HTML 4.0 also takes great strides towards the internationalization of documents, with the goal of making the Web truly World Wide.
HTML 4.0 is an SGML application conforming to International Standard ISO 8879 -- Standard Generalized Markup Language [ISO8879].
Status of this document
This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web.
W3C recommends that user agents and authors (and in particular, authoring tools) produce HTML 4.0 documents rather than HTML 3.2 documents (see [HTML32]). For reasons of backwards compatibility, W3C also recommends that tools interpreting HTML 4.0 continue to support HTML 3.2 and HTML 2.0 as well.
A list of current W3C Recommendations and other technical documents can be found at http://www.w3.org/TR.
Public discussion on HTML features takes place on www-html@w3.org.
Available formats
The HTML 4.0 W3C Recommendation is also available in the following formats:
A plain text file:
http://www.w3.org/TR/REC-html40-971218/html40.txt(723Kb),
A gzip'ed tar file containing HTML documents:
http://www.w3.org/TR/REC-html40-971218/html40.tgz(339Kb),
A zip file containing HTML documents (this is a '.zip' file not an '.exe'):
http://www.w3.org/TR/REC-html40-971218/html40.zip(372Kb),
A Postscript file:
http://www.w3.org/TR/REC-html40-971218/html40.ps(4.4Mb, 363 pages),
A PDF file:
http://www.w3.org/TR/REC-html40-971218/html40.pdf(2.1Mb) file.
In case of a discrepancy between electronic and printed forms of the specification, the electronic version is the definitive version.
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/html40-updates/translations.html.
Errata
The list of known errors in this specification is available at http://www.w3.org/MarkUp/html40-updates/html40-errata.html
Please report errors in this document to www-html-editor@w3.org.
Table of Contents
- About the HTML 4.0 Specification
- Introduction to HTML 4.0
- 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 TABLEelement
* Table directionality - Table Captions: The CAPTION element
- Row groups: the THEAD, TFOOT, and TBODY elements
- Column groups: the COLGROUP and COL elements
* The COLGROUP element
* The COLelement
* Calculating the number of columns in a table
* Calculating the width of columns - Table rows: The TR element
- Table cells: The TH and TD elements
* Cells that span several rows or columns
- The TABLEelement
- 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: the BASE element
- Objects, Images, and Applets
- Introduction to objects, images, and applets
- Including an image: the IMG element
- Generic inclusion: the OBJECT 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 HRelement
- Frames - Multi-view presentation of documents
- Introduction to frames
- Layout of frames
- Specifying target frame information
- Alternate content
- Inline frames: the IFRAME 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 TEXTAREAelement
- The ISINDEXelement
- Labels
- Adding structure to forms: the FIELDSETand LEGENDelements
- 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 Document Validation
- Sample SGML catalog
- SGML Declaration of HTML 4.0
- SGML Declaration
- Document Type Definition
- Transitional Document Type Definition
- Frameset Document Type Definition
- Character entity references in HTML 4.0
- 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 between HTML 3.2 and HTML 4.0
- Changes to 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
- Performance, Implementation, and Design Notes