📄 html-3.dtd
字号:
<!-- html3.dtd Document Type Definition for the HyperText Markup Language (HTML DTD) Draft: Fri 24-Mar-95 09:46:33 Author: Dave Raggett <dsr@hplb.hpl.hp.com> W3O is developing a testbed browser to provide practical experience with HTML 3.0 before it becomes a standard. See: http://www.w3.org/hypertext/WWW/Arena/ This is an open process and comments are welcomed on the www-html mailing list. Please use the following MIME content type: Content-Type: text/html; version=3.0 This will allow clients to distinguish HTML 3.0 from current HTML documents. This is most easily achieved by saving files with the extension ".html3" or ".ht3" so that servers can easily distinguish these files from HTML 2.0 files. The entity HTML.Recommended can be used to give a more rigorous version of the DTD suitable for use with SGML authoring tools. The default version of the DTD offers a laxer interpretation, e.g. allowing authors to omit leading <P> elements. You can switch on the more rigorous version of the DTD by including the following at the start of your HTML document. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN//" [ <!ENTITY % HTML.Recommended "INCLUDE"> ] > Design Objectives: o Backwards compatibility with 2.0 o Tightening up HTML.Recommended and moving more things to HTML.Deprecated o Keep HTML - simple don't compete with CALS o Make it practical for people to edit HTML 3.0 documents directly, i.e. avoid long names. o Tables, figures and math from HTML+ with tweaks based on recent experience o Client-side event handling for figures and graphical form selection menus o Add limited presentational controls with a view to use of linked style sheets (style overrides are supported) o Compatibility with ICADD as per Yuri's suggestions HTML 3.0 relies on linked style info to give authors control over the appearence of documents. Such info is placed in a linked style sheet, or as overrides in the HTML document head, using the STYLE element. The generic CLASS attribute can be used to subclass elements when you want to use a different style from normal, e.g. you might use <h2 class=bigcaps> for headers with enlarged capital letters. Note that the class attribute has a wider scope than just style changes, e.g. browsers could provide the means for searching through documents, restricting search according to element class values. The DTD contains a small number of attributes for direct control of basic alignment parameters; column widths for tables; support for custom bullets, sequence numbering for lists and headers; and text flow. These attributes offer control over appearence which would be inconvenient to express exclusively via associated style sheets. The MD attribute for each hypertext or inline link specifies a message digest such as MD5 for the linked object and is needed to ensure someone hasn't tampered with a linked document. History: 24th March '95 Changed ROLE->CLASS for HTML element Added dummy elements to fix problem with mixed content models for BODY, BLOCKQUOTE/BQ and FIG Dropped audio fields from FORMs Reinstated MIN/MAX for range fields Reinstated DISABLED and ERROR attributes for fields 22nd March '95 Changed from em to en units. The latter is a typographical unit = half point size Merged NEEDS into CLEAR for control of textflow 21st March '95 Added REL=Banner to LINK element Added BANNER element in place of <DIV CLASS=BANNER> Added RANGE and SPOT elements Added FN in place of <NOTE ROLE=FOOTNOTE> Changed ROLE->CLASS for NOTE element 17th March '95 Fixed bug in PRE content model Changed external references to omit trailling // Dropped <!DOCTYPE HTML [ ... ]> wrapper to avoid problems with "real" sgml parsers Added NOFLOW attribute to FIG and TABLE Fixed typo in IMG ALIGN attribute Made SELECT match IMG for graphic attributes Added decimal alignment for tabs and table cells Added ALIGN attribute to TEXTAREA for parity with IMG and INPUT, including ALIGN=LEFT etc. 13th March '95 Dropped MARK tag on advice from SGML Open Allowed spaces in table colspec attribute Changed ARRAY element Added CHOOSE tag to BOX element Cleaned up PRE content model Obsoleted tags incompatible with SGML 6th March '95 Added several tags to MATH: %mathface, %mathvec and improved ROOT, with new SQRT convience tag 1st March '95 Dropped align attribute from BR element Added indent attribute to TAB Added optional CREDIT to end of BQ Changed FIG to %body.content to allow headers 22nd February '95 Added align attribute, and dropped before, after, center and right attributes to clean up TAB element Added INS and DEL for legal documents Added CREDIT to end of FIG element Dropped FN in favor of <NOTE ROLE=FootNote> 9th Feburuary '95 Dropped base attribute mechanism for scoping relative URLs Dropped nofold attribute for disabling whitespace folding Dropped border width attributes for FIG (-> style sheet) Dropped delims attribute from math BOX element Dropped stylistic attributes from OL such as inherit (-> stylesheet) Added baseline to list of valign attribute values for tables. Added DIV element for generic container class and static banners Added MARK element for marked range class Added closed set of LINK REL values for toolbars Added numbering attributes to headers Added bullet attributes to headers Added TERM element to math for style sheet control of term rendering Changed to imagemap=URI for server-side event handling for FIG/OVERLAY Changed delimiter attributes for math arrays Changed ROOT element for maths to allow an arbitrary radix Simplified numbering attributes for ordered lists Simplified STYLE element to leave binding to style language--><!ENTITY % HTML.Version "-//IETF//DTD HTML 3.0//EN" -- Typical usage: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN"> <html> ... </html> -- ><!--================== Flags for Marked Sections ==========================--><!ENTITY % HTML.Recommended "IGNORE" -- Certain features of the language are necessary for compatibility with widespread usage, but they may compromise the structural integrity of a document. This feature test entity enables a more prescriptive document type definition that eliminates the above features. --><![ %HTML.Recommended [ <!ENTITY % HTML.Deprecated "IGNORE">]]><!ENTITY % HTML.Deprecated "INCLUDE" -- Certain features of the language are necessary for compatibility with earlier versions of the specification, but they tend to be used an implemented inconsistently, and their use is deprecated. This feature test entity enables a document type definition that eliminates these features. --> <!ENTITY % HTML.Obsoleted "IGNORE" -- The XMP, LISTING and PLAINTEXT tags are incompatible with SGML and derive from very early versions of HTML. They require non- standard parsers and will cause problems for processing documents with standard SGML tools. --><!--================== Imported Names =====================================--><!ENTITY % Content-Type "CDATA" -- meaning a MIME content type, as per RFC1521 --><!ENTITY % HTTP-Method "GET | POST" -- as per HTTP specification --><!ENTITY % URI "CDATA" -- The term URI means a CDATA attribute whose value is a Uniform Resource Identifier, as defined by "Uniform Resource Identifiers" by Tim Berners-Lee aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html aka RFC 1630 Note that CDATA attributes are limited by the LITLEN capacity (1024 in the current version of html.decl), so that URIs in HTML have a bounded length. --><!ENTITY % REAL "CDATA" -- real numbers (not in SGML) --><!ENTITY % SHAPE "CDATA" -- Shape of hotzone in image. All coordinates are assumed to be numbers in the range 0 to 1 and interpreted as fractional width/height and measured from the top left corner of the associated image. The attribute value is a string taking one of the following forms: "default" Used to define a default link for the figure background. "circle x, y, r" (x, y) define the center and r the radius. "rect x, y, w, h" (x, y) defines upper left, and w and h the width and height. "polygon x1, y1, x2, y2, ..." Given n pairs of x, y coordinates, the polygon is closed by a line linking the n'th point to the first. Intersecting polygons use the non-zero winding number rule to determine if a point lies inside the polygon.I --><!-- 3.0 Parameter Entities --><!ENTITY % heading "H1|H2|H3|H4|H5|H6"><![ %HTML.Obsoleted [ <!ENTITY % preformatted "PRE | XMP | LISTING">]]><![ %HTML.Deprecated [ <!ENTITY % list "UL | OL | DIR | MENU"> <!ENTITY % blockquote "BLOCKQUOTE | BQ">]]><!ENTITY % list "UL | OL"><!ENTITY % blockquote "BQ"><!ENTITY % preformatted "PRE"><!-- The CLASS attribute is used to subclass HTML elements for rendering purposes, when used with style sheets, e.g. DSSSL lite --><!ENTITY % attrs -- common attributes for elements -- 'id ID #IMPLIED -- as target for hrefs (link ends) -- lang CDATA "en.us" -- ISO language, country code -- class NAMES #IMPLIED -- for subclassing elements --'><!-- SGML standard forces different NAMES for all attribute values in the same element, regardless of the attribute name! As a result CDATA is used for CLEAR attribute to avoid clash with ALIGN attribute.--><!--When text flows around a figure or table in the margin, you sometimes wantto start an element like a header, paragraph or list below the figure ratherthan alongside it. The CLEAR attribute allows you to move down unconditionally: clear=left move down until left margin is clear clear=right move down until right margin is clear clear=all move down until both margins are clearAlternatively, you can decide to place the element alongside the figure justso long as there is enough room. The minimum width needed is specified as: clear="40 en" move down until there is at least 40 en units free clear="100 pixels" move down until there is at least 100 pixels free The style sheet (or browser defaults) may provide default minimum widths foreach class of block-like elements.--><!ENTITY % needs -- Attributes for controlling text flow. Used in headers and other elements to guarantee sufficient room -- 'clear CDATA #IMPLIED'><!-- The following attribute may be included where ever a URL can be given: md message digest e.g. md="md5:jV2OfH+nnXHU8bnkPAad/mSQlTDZ" where the digest is base64 encoded and preceded by a prefix denoting the algorithm (in this case MD5).--><!ENTITY % url.link -- Attributes associated with URL based links -- "md CDATA #IMPLIED -- message digest for linked object --"><!--================ Character mnemonic entities ==========================--><!-- The HTML list of Latin-1 entities includes the full range of characters in widely available Latin-1 fonts, and as such is a mixture of ISOlat1 and other ISO publishing symbols --><!ENTITY % HTMLlat1 PUBLIC "-//IETF//ENTITIES Added Latin 1 for HTML//EN">%HTMLlat1;<!--================ Entities for special symbols =========================--><!ENTITY emsp SDATA "[emsp ]" -- em space --><!ENTITY ensp SDATA "[ensp ]" -- en space (1/2-em) --><!ENTITY mdash SDATA "[ndash ]" -- em dash --><!ENTITY ndash SDATA "[ndash ]" -- en dash (1/2-em) --><!ENTITY nbsp SDATA "[nbsp ]" -- non breaking space --><!ENTITY shy SDATA "[shy ]" -- soft hyphen --><!ENTITY copy SDATA "[copy ]" -- copyright sign --><!ENTITY trade SDATA "[trade ]" -- trade mark sign --><!ENTITY reg SDATA "[reg ]" -- registered sign --><!--================ Entities for standard icons ==========================--><!-- a range of standard icons such as &folder; for use in speeding up display of directory listings etc. -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -