HTML40-970917
HTML 4.0 Specification
W3C Working Draft 17-Sep-1997
- This version:
- http://www.w3.org/TR/WD-html40-970917/
- Latest version:
- http://www.w3.org/TR/WD-html40/
- Previous version:
- http://www.w3.org/TR/WD-html40-970708/
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]).
As an SGML application, the syntax of conforming HTML 4.0 documents is
defined by the combination of the SGML
declaration and the document type
definition (DTD). This specification defines the intended
interpretation of HTML 4.0 elements and adds syntax constraints
that may not be expressed by the DTD alone.
Status of this document
This is a W3C Working Draft for review by W3C members and other
interested parties. It is a draft document and may be updated, replaced
or obsoleted by other documents at any time. It is inappropriate to use
W3C Working Drafts as reference material or to cite them as other than
"work in progress". This is work in progress and does not imply
endorsement by, or the consensus of, either W3C or members of the HTML
working group.
This document has been produced as part of the W3C HTML
Activity, and is intended as a draft of a proposed recommendation
for HTML.
HTML 4.0 replaces HTML 3.2, specified in http://www.w3.org/TR/REC-html32.
Editors
Comments
Please send detailed comments on this document to www-html-editor@w3.org. We cannot
guarantee a personal response but we will try when it is appropriate. Public
discussion on HTML features takes place on www-html@w3.org.
- About the HTML 4.0 Specification
- How to read the specification
- How the specification is organized
- Acknowledgments
- Introduction to HTML 4.0
- A brief history of HTML
- HTML 4.0
- Internationalization
- Accessibility
- Tables
- Compound documents
- Style sheets
- Scripting
- Printing
- Designing documents with HTML 4.0
- Separate structure and presentation
- Consider universal accessibility to the Web
- Help user agents with incremental rendering
- A brief SGML tutorial
- HTML syntax
- Entities
- Elements
- Attributes
- HTML comments
- SGML features with limited support
- How to read the HTML DTD
- Block level and Inline elements
- DTD Comments
- Parameter entity definitions
- Element definitions
- Attribute definitions
- Definitions and Conventions
- Definitions
- Document conventions
- Elements and attributes
- Notes and examples
- SGML
- HTML and URLs - Locating
resources on the Web
- Uniform Resource Locators (URLs)
- Fragment identifiers
- Relative URLs
- URLs in HTML
- HTML Document Character
Set - Character sets, character encodings, and entities
- The Document Character Set
- Character entities
- Basic HTML data
types - Character data, colors, and lengths
- URLs
- Character data
- Colors
- Notes on using colors
- Lengths and Pixels
- The global structure of an HTML document - The HEAD and BODY of a document
- HTML version information
- The HTML element
- The HEAD element
- Titles: the
TITLE
element and the title attribute
- Meta information
- The BODY element
- Element identifiers: the id and class attributes
- Grouping elements: the DIV and SPAN elements
- Headings: The H1,
H2,
H3,
H4,
H5,
H6 elements
- The ADDRESS
element
- Language information and text direction -
International considerations for text
- Specifying the language of content: the
lang attribute
- Inheritance of language codes
- Interpretation of language codes
- Specifying the direction of text: the
dir attribute
- Introduction to the bidirectional algorithm
- Inheritance of text direction information
- Setting the direction of embedded text
- Overriding the bidirectional algorithm: the BDO element
- Support for character directionality and joining
- The effect of style sheets on bidirectionality
- Undisplayable characters
- Text - Paragraphs, Lines, and Phrases
- White space
- Structured text
- Phrasal elements: EM,
STRONG, DFN, CODE, SAMP,
KBD, VAR, CITE, and ACRONYM
- Quotations: The
BLOCKQUOTE and Q
elements
- Subscripts and superscripts: the SUB and
SUP elements
- Lines and Paragraphs
- Paragraphs: the P
element
- Visual rendering of paragraphs
- Controlling line breaks
- Hyphenation
- Preformatted text: The PRE element
- Marking document changes: The INS and DEL elements
- Date and time format
- Lists - Unordered, Ordered, and Definition Lists
- Unordered (UL)
and ordered (OL)
lists
- Lists formatted by visual user agents
- Definition lists: the DL,
DT,
and
DD elements
- The DIR
and MENU elements
- Tables
- Elements for constructing tables
- The TABLE
element
- Table Captions: The CAPTION element
- Groups of rows: the THEAD, TFOOT, and TBODY elements
- Groups of columns: the COLGROUP and COL elements
- Table rows: The TR element
- Table cells: The TH and TD elements
- Table formatting by visual user agents
- Horizontal and vertical alignment
- Borders and rules
- Cell margins
- Some sample tables
- Sample 1
- Sample 2
- Links - Hypertext and Media-Independent Links
- Introduction to links and anchors
- Visiting a linked resource
- Other link relationships
- Specifying links and anchors
- Link titles
- Internationalization and links
- Resource retrieval: the A element
- Syntax of anchor names
- Mailto links
- Nested links
- Anchors with the id attribute
- Document relationships: the LINK element
- Reverse Links
- Link types
- Links and external style sheets
- Links and search engines
- Path information: the
BASE element
- Objects, Images, and Applets
- Including an image: the IMG element
- Generic inclusion: the OBJECT element
- Rules for rendering objects
- Object initialization: the PARAM element
- URLs other than HTTP URLs
- Object declarations and
instantiations
- Including an applet: the APPLET element
- Including HTML in another HTML
document
- Image maps
- Client-side image maps
- Server-side image maps
- Visual presentation of images, objects, and
applets
- Width and height
- White space around images and objects
- Borders
- Alignment
- How to specify alternate text
- Style Sheets - Controlling
the presentation of an HTML document
- Adding style to HTML
- Setting the default style sheet language
- Inline style information
- Header style information: the STYLE element
- Media types
- External style sheets
- Setting the default named style
- Media-dependent cascades
- Inheritance and cascading
- Hiding the Content of Style Elements from non-conforming
User Agents
- Specifying style through HTTP headers
- Alignment, font styles, and horizontal rules
- Formatting
- Background color
- Alignment
- Floating objects
- Fonts
- Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements
- Font modifier elements: FONT and BASEFONT
- Rules: the HR element
- Frames - Multi-view presentation of documents
- Layout of frames
- The FRAMESET
element
- The FRAME
element
- Specifying target frame information
- Setting the default target for links
- Target semantics
- Target names
- Alternate content
- The NOFRAMES
element
- Inline frames: the IFRAME element
- Forms - User-input Forms:
Text Fields, Buttons, Menus, and more
- The FORM element
- Controls
- The INPUT element
- The BUTTON element
- The SELECT
and OPTION elements
- The TEXTAREA
element
- The LABEL element
- The FIELDSET
and LEGEND
elements
- Giving focus to an element
- Tabbing navigation
- Access keys
- Disabled and read-only elements
- Disabled elements
- Read-only elements
- Form submission
- Processing form data
- Which control values are submitted
- Scripts -
Animated Documents and
Smart Forms
- Designing documents for user agents that support scripting
- The SCRIPT
element
- Specifying the scripting language
- Syntax of script content
- Intrinsic events
- Dynamic modification of documents
- Designing documents for user agents that don't support
scripting
- The NOSCRIPT
element
- Commenting out scripts
- SGML reference information for HTML - Formal
definition of HTML and validation
- Document Validation
- Sample SGML catalog
- SGML Declaration
- The Document Character Set
- Data transfer
- The SGML Declaration
- Document Type Definition
- Transitional Document Type
Definition
- Frameset Document Type Definition
- Named character entities
- Named entities for ISO 8859-1 characters
- The list of characters
- Named entities for symbols, mathematical symbols,
and Greek letters
- The list of characters
- Named entities for markup-significant and
internationalization characters
- The list of characters
- Changes between HTML 3.2 and HTML 4.0
- Changes to elements
- New elements
- Deprecated elements
- Obsolete elements
- Changes to Tables
- Changes to Forms
- Performance, Implementation, and Design Notes
- Notes on helping search engines index your Web site
- Search robots
- Notes on tables
- Design rationale
- Recommended Layout Algorithms
- Notes on forms
- Incremental display
- Future projects
- Notes on scripting
- Reserved syntax for future script macros
- Notes on accessibility
- Generating alternate text