SGML Full Form

SGML stands for Standard Generalized Markup Language. It can be defined as the standard for defining generalized markup language for documents.

SGML-Full-Form

It was developed and designed by the International Organisation for Standards i.e ISO.
HTML was theoretically an example of an SGML-based language until HTML 5, which browsers cannot parse as SGML for compatibility reasons. The SGML is the extended from GML and later on it is extended to HTML and XML.

The extension of SGML files is:

.sgml

Syntax:

<NAME TYPE="user">
    Geeks for Geeks
</NAME>

SGML code typially looks like:

filter_none

edit
close

play_arrow

link
brightness_4
code

<EMAIL>
    <SENDER>
        <PERSON>
            <FIRSTNAME>GEEKSFOR GEEKS</LASTNAME>
        </PERSON>
    </SENDER>
    <BODY>
        <P>Hello, Welcome to GEEKF FOR GEEKS</p>
    </BODY>
</EMAIL>

chevron_right


Characteristics

  • The SGML Declarations.
  • The Prologue, containing a DOCTYPE declaration with the various markup declarations that together make a DTD i.e Document Type Definition.
  • The instance itself, containing one top-most element and its contents

Advantages

  • It has the capability to encode the full structure of the document and can support any media type.
  • It is of much more use than HTML which provides capabilities to code visual representation and not to structure the real piece of information.
  • SGML files encoding is allowed for more complex formatting as compared to HTML.
  • The Stylesheets present in SGML make the content to use for different purposes.

Disadvantages

  • It may be typical to code software in SGML.
  • Tools that are used in SGML are expansive.
  • It may not be used widely
  • Special software is required to run or to allow the document to display.
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.