Skip to content

Instantly share code, notes, and snippets.

@rajasekarm
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save rajasekarm/9959619 to your computer and use it in GitHub Desktop.

Select an option

Save rajasekarm/9959619 to your computer and use it in GitHub Desktop.

Revisions

  1. @rajzshkr rajzshkr revised this gist Apr 3, 2014. 1 changed file with 0 additions and 18 deletions.
    18 changes: 0 additions & 18 deletions doctype1.html
    Original file line number Diff line number Diff line change
    @@ -7,21 +7,3 @@

    <!DOCTYPE HTML PUBLIC “-// W3C// DTD HTML 4.0 Transitional// EN” “http://www.w3.org/TR/html4/loose.dtd”>
    1 2 3 4 5 6 7 8

    Explanation:

    [Top Element] - Indicates the top level element type declared in the DTD; for HTML it is <html>.

    [Availability] - Field indicates whether the identifier is a publicly accessible object (PUBLIC) or a system resource (SYSTEM) such as a local file or URL. HTML/XHTML DTDs are specified by PUBLIC identifiers.

    [Registration] - Indicated by either a plus ("+") or minus ("-"). A plus symbol indicates that the organization name that follows is ISO-registered. A minus sign indicates the organization name is not registered. The IETF and W3C are not registered ISO organizations and thus use a "-".

    [Organization] - This is the "OwnerID" - a unique label indicating the name of the entity or organization responsible for the creation and/or maintenance of the artifact (DTD, etc.) being referenced by the DOCTYPE. The IETF and W3C are the two originating organizations of the official HTML/XHTML DTDs.

    [Type] - This is the "Public Text Class" - the type of object being referenced. There are many different keywords possible here, but in the case of an HTML/XHTML DTD, it is "DTD" - a Document Type Definition.

    [Label] - This is the "Public Text Description" - a unique descriptive name for the public text (DTD) being referenced. If the public text changes for any reason, a new Public Text Description string should be created for it.

    [Language] - This is the "Public Text Language"; the natural language encoding system used in the creation of the referenced object. It is written as an ISO 639 language code (uppercase, two letters.) HTML/XHTML DTDs are usually (always?) written in English ("EN".)

    [URL] - This is the optional explicit URL to the DTD being referenced.
  2. @rajzshkr rajzshkr revised this gist Apr 3, 2014. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion doctype1.html
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,22 @@
    Typical example

    <!DOCTYPE HTML PUBLIC “-// W3C// DTD HTML 4.0 Transitional// EN” “http://www.w3.org/TR/html4/loose.dtd”>
    1 2 3 4 5 6 7 8
    1 2 3 4 5 6 7 8

    Explanation:

    [Top Element] - Indicates the top level element type declared in the DTD; for HTML it is <html>.

    [Availability] - Field indicates whether the identifier is a publicly accessible object (PUBLIC) or a system resource (SYSTEM) such as a local file or URL. HTML/XHTML DTDs are specified by PUBLIC identifiers.

    [Registration] - Indicated by either a plus ("+") or minus ("-"). A plus symbol indicates that the organization name that follows is ISO-registered. A minus sign indicates the organization name is not registered. The IETF and W3C are not registered ISO organizations and thus use a "-".

    [Organization] - This is the "OwnerID" - a unique label indicating the name of the entity or organization responsible for the creation and/or maintenance of the artifact (DTD, etc.) being referenced by the DOCTYPE. The IETF and W3C are the two originating organizations of the official HTML/XHTML DTDs.

    [Type] - This is the "Public Text Class" - the type of object being referenced. There are many different keywords possible here, but in the case of an HTML/XHTML DTD, it is "DTD" - a Document Type Definition.

    [Label] - This is the "Public Text Description" - a unique descriptive name for the public text (DTD) being referenced. If the public text changes for any reason, a new Public Text Description string should be created for it.

    [Language] - This is the "Public Text Language"; the natural language encoding system used in the creation of the referenced object. It is written as an ISO 639 language code (uppercase, two letters.) HTML/XHTML DTDs are usually (always?) written in English ("EN".)

    [URL] - This is the optional explicit URL to the DTD being referenced.
  3. @rajzshkr rajzshkr created this gist Apr 3, 2014.
    9 changes: 9 additions & 0 deletions doctype1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Syntax

    <!DOCTYPE [Top Element] [Availability] "[Registration]// [Organization]// [Type] [Label]//[Language]" "[URL]">
    1 2 3 4 5 6 7 8

    Typical example

    <!DOCTYPE HTML PUBLIC “-// W3C// DTD HTML 4.0 Transitional// EN” “http://www.w3.org/TR/html4/loose.dtd”>
    1 2 3 4 5 6 7 8