Open In App

SGML Full Form

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



It was developed and designed by the International Organization 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 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 typically looks like:  




<EMAIL>
    <SENDER>
        <PERSON>
            <FIRSTNAME>GEEKSFORGEEKS</LASTNAME>
        </PERSON>
    </SENDER>
    <BODY>
         
 
<p>Hello, Welcome to GEEKSFORGEEKS</p>
 
 
    </BODY>
</EMAIL>

Characteristics

Components of an SGML Document :

There are mainly three components of SGML document. They are – 

  1. SGML Declaration
  2. Prolog
  3. Document instance.

Advantages

Disadvantages

Article Tags :