Movatterモバイル変換
[0]ホーム
REC-html40-19980424
HTML 4.0 Specification
W3C Recommendation, revised on24-Apr-1998
- This version:
- http://www.w3.org/TR/1998/REC-html40-19980424
- Latest version:
- http://www.w3.org/TR/REC-html40
- Previous version:
- http://www.w3.org/TR/REC-html40-971218
- 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 additionto the text, multimedia, and hyperlink features of the previous versionsof HTML, HTML 4.0 supports more multimedia options, scripting languages,style sheets, better printing facilities, and documents that are moreaccessible to users with disabilities. HTML 4.0 also takes great stridestowards the internationalization of documents, with the goal of makingthe Web truly World Wide.
HTML 4.0 is an SGML application conforming to InternationalStandard ISO 8879 -- Standard Generalized Markup Language[ISO8879].
Status of this document
This document has been reviewed by W3C Members and other interestedparties and has been endorsed by the Director as a W3CRecommendation. It is a stable document and may be used as referencematerial or cited as a normative reference from anotherdocument. W3C's role in making the Recommendation is to draw attentionto the specification and to promote its widespread deployment. Thisenhances 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.2documents (see[HTML32]).For reasons of backwards compatibility, W3C also recommends that toolsinterpreting HTML 4.0 continue to support HTML 3.2 and HTML 2.0 aswell.
A list of current W3C Recommendations and other technical documentscan be found athttp://www.w3.org/TR.
Public discussion on HTML features takes place onwww-html@w3.org.
This document is a revised version of the document first released on18 December 1997.Changes from theoriginal version are only editorial in nature.
Available formats
The HTML 4.0 W3C Recommendation is also available in thefollowing formats:
- A plain text file:
- http://www.w3.org/TR/1998/REC-html40-19980424/html40.txt(735Kb),
- A gzip'ed tar file containing HTML documents:
- http://www.w3.org/TR/1998/REC-html40-19980424/html40.tgz(357Kb),
- A zip file containing HTML documents(this is a '.zip' file not an '.exe'):
- http://www.w3.org/TR/1998/REC-html40-19980424/html40.zip(389Kb),
- A gzip'ed Postscript file:
- http://www.w3.org/TR/1998/REC-html40-19980424/html40.ps.gz(600Kb, 367 pages),
- A PDF file:
- http://www.w3.org/TR/1998/REC-html40-19980424/html40.pdf(2.1Mb) file.
In case of a discrepancy between electronic and printed forms ofthe specification, the electronic version is the definitive version.
Available languages
The English version of this specification is the only normativeversion. However, for translations of this document, seehttp://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/REC-html40-19980424-errata.html
Please report errors in this document towww-html-editor@w3.org.
- About the HTML 4.0 Specification
- How the specification is organized
- Document conventions
- Elements and attributes
- Notes and examples
- Acknowledgments
- Copyright Notice
- Introduction to HTML 4.0
- What is the World Wide Web?
- Introduction to URIs
- Fragment identifiers
- Relative URIs
- What is HTML?
- A brief history of HTML
- HTML 4.0
- Internationalization
- Accessibility
- Tables
- Compound documents
- Style sheets
- Scripting
- Printing
- Authoring documents with HTML 4.0
- Separate structure and presentation
- Consider universal accessibility to the Web
- Help user agents with incremental rendering
- On SGML and HTML
- Introduction to SGML
- SGML constructs used in HTML
- Elements
- Attributes
- Character references
- Comments
- How to read the HTML DTD
- DTD Comments
- Parameter entity definitions
- Element declarations
- Attribute declarations
- Conformance: requirementsand recommendations
- Definitions
- SGML
- The text/html content type
- HTML Document Representation- Character sets, character encodings, and entities
- The Document Character Set
- Character encodings
- Choosing an encoding
- Specifying the character encoding
- Character references
- Numeric character references
- Character entity references
- Undisplayable characters
- Basic HTML data types- Character data, colors, lengths, URIs, content types, etc.
- Case information
- SGML basic types
- Text strings
- URIs
- Colors
- Notes on using colors
- Lengths
- Content types (MIME types)
- Language codes
- Character encodings
- Single characters
- Dates and times
- Link types
- Media descriptors
- Script data
- Style sheet data
- Frame target names
- The global structure of an HTML document- The HEAD and BODY of a document
- Introduction to the structure of an HTML document
- HTML version information
- TheHTML element
- The document head
- TheHEAD element
- TheTITLEelement
- Thetitle attribute
- Meta data
- The document body
- TheBODY element
- Element identifiers: theidandclass attributes
- Block-level and inline elements
- Grouping elements: theDIV andSPAN elements
- Headings: TheH1,H2,H3,H4,H5,H6 elements
- TheADDRESSelement
- Language information and text direction-International considerations for text
- Specifying the language of content: thelang attribute
- Language codes
- Inheritance of language codes
- Interpretation of language codes
- Specifying the direction of text and tables: thedir attribute
- Introduction to thebidirectional algorithm
- Inheritance of text directioninformation
- Setting the direction of embedded text
- Overriding the bidirectional algorithm: theBDO element
- Character references for directionality and joiningcontrol
- Theeffect of style sheets on bidirectionality
- Text- Paragraphs, Lines, and Phrases
- Whitespace
- Structured text
- Phrase elements:EM,STRONG,DFN,CODE,SAMP,KBD,VAR,CITE,ABBR, andACRONYM
- Quotations: TheBLOCKQUOTE andQelements
- Subscripts and superscripts: theSUB andSUP elements
- Lines and Paragraphs
- Paragraphs: theP element
- Controlling line breaks
- Hyphenation
- Preformatted text: ThePRE element
- Visual rendering of paragraphs
- Marking document changes: The INS and DEL elements
- Lists- Unordered, Ordered, and Definition Lists
- Introduction to lists
- Unordered lists (UL),ordered lists (OL), and list items (LI)
- Definition lists: theDL,DT,andDD elements
- Visualrendering of lists
- TheDIR andMENU elements
- Tables
- Introduction to tables
- Elements for constructing tables
- TheTABLEelement
- Table Captions: TheCAPTION element
- Row groups: theTHEAD,TFOOT, andTBODY elements
- Column groups: theCOLGROUP andCOL elements
- Table rows: TheTR element
- Table cells: TheTH andTD elements
- Table formatting by visual useragents
- Borders and rules
- Horizontaland vertical alignment
- Cell margins
- Table rendering by non-visual useragents
- Associating header information with datacells
- Categorizing cells
- Algorithm to find heading information
- Sample table
- Links- Hypertext and Media-Independent Links
- Introduction to links and anchors
- Visiting a linked resource
- Other link relationships
- Specifying anchors and links
- Link titles
- Internationalization and links
- TheA element
- Syntax of anchor names
- Nested links are illegal
- Anchors with theidattribute
- Unavailable and unidentifiable resources
- Document relationships: theLINK element
- Forward and reverse links
- Links andexternal style sheets
- Links and search engines
- Path information: theBASE element
- Resolving relativeURIs
- Objects, Images, and Applets
- Introduction to objects, images, and applets
- Including an image: theIMG element
- Generic inclusion: theOBJECT element
- Rules for rendering objects
- Object initialization: thePARAM element
- Global naming schemes for objects
- Object declarations andinstantiations
- Including an applet: theAPPLET element
- Notes on embedded documents
- Image maps
- Client-side image maps:theMAPandAREAelements
- Server-side image maps
- Visual presentationof images, objects, and applets
- Width andheight
- White space around images and objects
- Borders
- Alignment
- How to specify alternate text
- Style Sheets- Adding style to HTML documents
- Introduction to style sheets
- Adding style to HTML
- Setting the default style sheetlanguage
- Inline style information
- Header style information: theSTYLE element
- Mediatypes
- External style sheets
- Preferred and alternate style sheets
- Specifying external stylesheets
- Cascading style sheets
- Media-dependent cascades
- Inheritance and cascading
- Hidingstyle data from user agents
- Linking to style sheets with HTTP headers
- Alignment, font styles, and horizontal rules
- Formatting
- Background color
- Alignment
- Floating objects
- Fonts
- Font style elements: theTT,I,B,BIG,SMALL,STRIKE,S, andU elements
- Font modifier elements:FONT andBASEFONT
- Rules: theHRelement
- Frames- Multi-view presentation of documents
- Introduction to frames
- Layout of frames
- TheFRAMESET element
- TheFRAMEelement
- Specifying target frameinformation
- Settingthe default target for links
- Target semantics
- Alternate content
- TheNOFRAMESelement
- Long descriptions of frames
- Inline frames: theIFRAME element
- Forms- User-input Forms:Text Fields, Buttons, Menus, and more
- Introduction to forms
- Controls
- Control types
- TheFORM element
- TheINPUT element
- Control types created with INPUT
- Examples of forms containing INPUT controls
- TheBUTTON element
- TheSELECT,OPTGROUP,andOPTION elements
- Preselected options
- TheTEXTAREAelement
- TheISINDEXelement
- Labels
- TheLABEL element
- Adding structure to forms:theFIELDSETandLEGENDelements
- Giving focus to an element
- Tabbing navigation
- Accesskeys
- Disabled and read-only controls
- Disabled controls
- Read-only controls
- Form submission
- Form submission method
- Successful controls
- Processing form data
- Form content types
- Scripts-Animated Documents andSmart Forms
- Introduction to scripts
- Designing documents for user agents that support scripting
- TheSCRIPTelement
- Specifying the scripting language
- Intrinsic events
- Dynamic modification ofdocuments
- Designing documents for user agents that don't supportscripting
- TheNOSCRIPT element
- Hiding script data from user agents
- SGML reference information for HTML- Formaldefinition of HTML and validation
- DocumentValidation
- Sample SGML catalog
- SGML Declaration of HTML 4.0
- SGML Declaration
- Document Type Definition
- Transitional Document TypeDefinition
- Frameset Document Type Definition
- Character entity references inHTML 4.0
- Introduction to character entity references
- Character entity references for ISO 8859-1 characters
- The list of characters
- Character entity references for symbols, mathematical symbols,and Greek letters
- The list of characters
- Character entity references for markup-significantand internationalization characters
- The list of characters
- Changes
- 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
- Changes from the 18 December 1997 specification
- Errors that were corrected
- Minor typographical errors that were corrected
- Performance, Implementation, and Design Notes
- Notes on invalid documents
- Special characters in URI attribute values
- Non-ASCII characters in URI attribute values
- Ampersands in URI attribute values
- SGML implementation notes
- Line breaks
- Specifying non-HTML data
- SGML features with limitedsupport
- Boolean attributes
- Marked Sections
- Processing Instructions
- Shorthand markup
- Notes on helping search engines index your Website
- 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 frames
- Notes on accessibility
- Notes on security
- Security issues for forms
[8]ページ先頭