eWebProgrammer
Distributednetworks GofPatterns
prev next prev next
Course navigation
Lesson 2Description of Markup languages
Objective Describe markup languages.
To understand what XML is and how it works, you must know what a markup language is.
Markup languages are designed to tell machines, particularly computers, how to process data. The term "markup" derives from early print publishers, who would "mark up" text by hand to indicate to the printer which font size to use where, in which weight, using what form of alignment, and so forth. In other words, the earliest markup languages were dedicated to passing formatting instructions.
Tags
Markup instructions are generally referred to as tags, and the process of marking up a document is sometimes called tagging. Early word-processing programs required the user to perform manual tagging.
Today, most tagging in programs happens behind the scenes, and usually takes place using a proprietary system. The divergence of methods for tagging text in proprietary systems made it hard for people to exchange data with each other.
With the advent of the Internet, the ability for authors to interchange documents in a format that was easy to use, yet powerful and aesthetically acceptable, became more valuable and more imperative.
Procedural and logical markup
Markup specifically designed to affect the appearance of a document is commonly called procedural markup because it instructs the computer (the browser in the case of HTML) how to render, or display, the text. But organizations that process huge numbers of documents, such as government and bureaucratic entities, quickly found that it was more important to know what the data represented rather than how it looked.
As a result, markup was created that described the content of the page.
This type of markup is called descriptive, or logical, markup.
XML Image
XML Image
Procedural Logical Markup
XML documents use markup to describe the semantics of the data included in the documents. Since XML has no predefined tags, like those used in HTML, a set of tags is created for each type of document. In that sense, XML is a metalanguage.
The metalanguage aspect of XML is discussed in the next lesson.
The next lesson defines metalanguages.
Course navigation