ETC MAIN PAGE | ABOUT SGML AND E-TEXTS | HOLDINGS

 
 

WHAT IS SGML?

Standard Generalized Markup Language (SGML) is an international standard for the description of encoded or marked-up electronic text.

Marking-up text is an old concept. Text may be "marked up" to add different types of information to a document; some examples are:

The SGML standard allows the definition of different document types. An SGML "document type definition" (DTD) defines which components of a document may be marked up or "tagged", and it defines the relationship between these components. The "tags" used to flag a certain feature are always enclosed in angle brackets. So, for example, a DTD may allow the tags <poem> and <stanza>, and constrain a <stanza> to be within a <poem>.

There are several widely-used DTDs in existence: examples are the Text Encoding Initiative (TEI) DTD, and Hypertext Markup Language (HTML - used for the World Wide Web). In addition, many organizations or individuals create their own specialized DTDs.

Since the markup is done using only textual elements - all markup uses ASCII characters (letters, numbers, and a few other characters like <, >, and &) -- the resulting files do not have to be stored in binary format (as with a word processor document) and are independent of platform and operating system.

The markup added to a document or set of documents may be used later in a variety of ways. For example,

Many articles are available on the Web with information about SGML and electronic texts. Some of these are listed here:


The Electronic Text Centre, Dalhousie University, Halifax, Nova Scotia B3H 4H8
etc@dal.ca - http://etc.dal.ca/ - 902-494-2319 (fax)


Back to the ETC | Contact the ETC | Dalhousie University | Dalhousie University Libraries | DISCLAIMER


The Electronic Text Centre is a project of the Dalhousie Electronic Text Working Group, with participation from Dalhousie's Killam Library, the School of Library and Information Studies, the Department of English, and Academic Computing Services.

Dalhousie University