SGML

Standard Generalized Markup Language (SGML) is a markup language that provides a standard for defining markup languages. It is used for marking up files such that they are no longer dependent on any other application. It uses .sgml extension for saving SGML files. It manipulates massive files which require frequent revisions and is a part of complicated systems.
It defines the relationship between entities, elements, and attributes of a document and also defines rules that allow the computer system to identify the start and end of an element. It provides the simplest way to exchange files between machines and applications directly.

Example: Implementation of basic structure of SGML code.

XML




<MESSAGE>
    <FROM>w3wiki</FROM>
    <TEXT>Welcome to w3wiki</TEXT>
</MESSAGE>


Output:

Features:

  • SGML is platform-independent, allowing for versatility in different environments.
  • SGML represents elements using distinct tags for clarity and organization.
  • Elements in SGML have generic types and attributes, enhancing flexibility.
  • SGML maintains consistent usage of delimiters and special characters for uniformity.
  • SGML supports string substitution for standard boilerplate text, streamlining document creation.
  • SGML facilitates effective document management, aiding in organization and retrieval.

Drawbacks:

  • It has a complex linking procedure.
  • It is very hard to write SGML code.


Explain different markup languages other than HTML

Markup languages are computer languages that are used to structure, format, or define relationships between different parts of text documents with the help of symbols or tags inserted in the document. These languages are more readable than usual programming languages with strict syntax. There are several markup languages available but the most popular among them are as follows.

Table of Content

  • HTML
  • XML
  • XHTML
  • SGML

Similar Reads

HTML:

Hypertext Markup Language (HTML) is a markup language used to create and link webpages. It defines the basic structure of a web page and contains meta-data about the page and a series of elements to be displayed on the web page. It uses predefined tags such as

, , etc. to render different elements on the webpage. Each element requires a starting and ending tag with content inside it. A marked-up document written in HTML is displayed by a web browser that interprets different tags and accordingly formats and structures the content of the document before displaying it. It can be written in a plain text editor and can be associated with styling sheets such as CSS (Cascading Style Sheets)  and scripting languages such as JavaScript....

XML:

...

XHTML:

Extensible Markup Language (XML) is a markup language used for storing structured data. It uses custom tags to define the elements which support a wide range of elements. It was developed because HTML was unable to define new elements hence XML was introduced which was extensible to define custom elements. It was designed to store and transport data and contain information about the sender, receiver, heading, and message body. It is more focused on what data is rather than how data looks. It is used for representing documents, data, transactions, invoices, etc....

SGML:

...