Every time you open a webpage, your browser quietly reads a set of instructions that tell it what is a heading, what is a paragraph, where an image should sit, and which words link to another page. Those instructions are written in a markup language. Without markup languages, the web would be a flat wall of text with no structure, no formatting, and no way for machines to understand what content actually means. This post explains what markup languages are, why they sit at the heart of web development, and how the big three – SGML, HTML, and XML – work and differ.

Table of Contents

What is a markup language?

A markup language is a system for annotating a document so that a computer can understand its structure and meaning. Instead of writing plain text, you add labels – called tags – around the content to describe its role. A tag might say “this is a title,” “this is a paragraph,” or “this is a list item.” The computer reads these labels and processes the content accordingly.

The word “markup” comes from traditional publishing. Before printing, editors would “mark up” a manuscript with handwritten notes telling the typesetter how text should appear. Digital markup languages do the same job, except the notes are tags that structure, annotate, and format textual information for electronic devices.

Importantly, markup languages are not programming languages. They do not contain logic, loops, or calculations. Their job is to describe and organise content, not to perform actions. A markup language gives a document a predictable structure that both humans and machines can read.

How tags structure content

Most markup tags work in pairs. There is a start tag and an end tag, and the content sits between them. For example, an element typically looks like a start tag <some-element> and a matching end tag </some-element>. The browser or software reads these boundaries to know where a piece of content begins and ends.

This tagging approach makes documents machine-readable. A search engine can identify a heading, a screen reader for visually impaired users can announce a navigation menu, and a content management system can pull out the right pieces of information – all because the markup tells them what each part is.

Why markup languages matter

Markup languages matter because they separate content from the way it is handled. The same marked-up document can be displayed on a desktop, a phone, or read aloud, while the underlying structure stays consistent. This separation is what makes digital content flexible and reusable.

In web development, markup is the foundation layer. It forms the skeleton of every webpage before any visual styling or interactivity is added. A page built without proper markup is like a building without a frame – there is nothing for the rest to hang on.

Information representation and accessibility

For students of library and information science, markup languages are especially relevant because they are central to how information is represented, stored, and retrieved. Digital libraries, catalogues, and content management systems all rely on structured markup to organise metadata and make documents searchable.

Markup also drives accessibility. Semantic markup labels content’s structure and purpose, which helps browsers, search engines, and assistive technologies like screen readers interpret information correctly. When a heading is tagged as a heading rather than just made to look big, software can navigate the document properly. This is the difference between content that merely looks organised and content that is genuinely understood by machines.

Types of markup languages

There are many markup languages in use today, including HTML, XML, Markdown, SVG, and LaTeX. For understanding the World Wide Web, three are essential: SGML, HTML, and XML. The first is the ancestor; the other two are its most famous descendants.

SGML: the parent language

SGML stands for Standard Generalized Markup Language. It is not a language for writing web pages directly. Instead, it is a system for defining other markup languages – a framework that sets the rules for how tags should work. Any markup language built using SGML’s rules is called an SGML application.

SGML has deep roots. Its first working draft appeared in 1980, and the final version was published as the ISO 8879 standard in 1986. It became the foundation for an entire family of markup languages, including HTML and XML. SGML’s strength was that it allowed documents to be tagged in a way that was independent of how they would eventually be displayed, so the same content could be transformed into different formats.

The drawback was complexity. SGML was powerful but difficult to learn and implement, which made it impractical for the simple, fast-growing needs of the early web. As a result, simpler, more specialised languages took over for everyday use, even though SGML’s core ideas live on inside them.

HTML: the language of web pages

HTML stands for HyperText Markup Language. It was created by Sir Tim Berners-Lee, a British scientist working at CERN, the European nuclear research organisation. In 1989 he proposed a system for scientists to share documents over a network, and HTML became the language for encoding those documents. He built it on top of existing SGML rather than inventing a new standard from scratch, borrowing the idea of tags written between angle brackets.

The very first version had fewer than two dozen tags. HTML was deliberately kept simple so that people who were not SGML experts could publish technical and scientific documents on the web. That simplicity is exactly why it spread so quickly once the web reached the public in the mid-1990s.

Since 1996, the HTML specification has been maintained by the World Wide Web Consortium (W3C), the body Berners-Lee founded in 1994 to standardise web technologies. The current generation, HTML5, is widely supported across browsers and devices and is the standard for modern web pages.

XML: the language of data

XML stands for Extensible Markup Language. It was developed by the W3C and established under the XML 1.0 specification in 1998. Like HTML, it is a simplified application of SGML, but it was designed with a completely different goal in mind. While HTML focuses on displaying content, XML focuses on carrying and storing data.

The word “extensible” is the key. Unlike HTML, where the tags are fixed and predefined, XML lets you invent your own tags to describe whatever data you have. If you are storing details about a book, you can create tags such as <title>, <author>, and <publisher>. The markup describes what the data is, not how it should look.

How HTML works

An HTML document is built from three closely related building blocks: tags, elements, and attributes. Understanding how these fit together explains how every webpage is constructed.

Tags and elements

A tag is the label written inside angle brackets, like <p> for a paragraph. Most tags come in pairs: an opening tag and a closing tag that includes a forward slash, such as <p> and </p>. An element is the complete package – the opening tag, the content inside, and the closing tag together. So <p>Hello</p> is a paragraph element.

HTML provides tags for many kinds of content: headings, paragraphs, lists, links, images, and tables, among others. When a browser receives an HTML document, it reads each tag and renders the content visually. The browser interprets the markup and adapts the layout to the screen size and fonts available to it, which is why the same page can look right on both a laptop and a phone.

Attributes

Many HTML tags carry attributes, which provide extra information about an element. Attributes appear inside the opening tag and usually come in name-and-value pairs. For example, a link element uses an href attribute to specify the web address it points to, and an image element uses a src attribute to specify where the image file is located.

Semantic HTML

Modern HTML encourages the use of semantic tags – tags that describe the meaning of a section rather than just its appearance. Tags such as those for a header, navigation menu, main content, and footer tell software what role each part of the page plays. This helps search engines rank pages more accurately and helps assistive technologies serve users who rely on them. Writing semantic HTML is now considered a core good practice in web development.

XML vs. HTML

HTML and XML look similar because both use angle-bracket tags and both descend from SGML. But they were built for opposite purposes, and knowing the difference is essential.

Purpose: display versus data

The central difference is what each language is for. HTML is designed to display data and control how it looks, while XML is designed to carry, transport, and store data. HTML answers the question “how should this appear on screen?” XML answers the question “what does this data mean?”

Tags: fixed versus custom

HTML uses a fixed set of predefined tags. You cannot invent a new HTML tag and expect a browser to understand it. XML is the reverse – it has no predefined tags at all. You define your own tags to suit your data, and the document becomes self-descriptive. This flexibility is what makes XML so useful for representing structured information across very different fields.

Rules: forgiving versus strict

HTML is fairly forgiving. If you forget to close a tag, most browsers will still try to display the page. XML is strict: every tag must be properly closed and correctly nested, or the document will not be processed at all. This strictness is deliberate, because without it, reliable data exchange between different applications would be impossible.

How XML enables data sharing

Because XML separates data from presentation and follows strict, predictable rules, it acts as a common language that different systems can all understand. When two pieces of software need to swap information, XML provides a standardised, platform-independent format for doing so. XML is used across web services, document management, configuration files, data serialisation, and RSS feeds.

A familiar example is the RSS feed, an XML-based format that lets news sites, blogs, and podcasts publish updates that other applications can automatically collect. Another is the configuration file: many software applications, including web servers and mobile apps, store their settings in XML so administrators can change behaviour without rewriting code. Even modern office document formats are built on XML-based structures underneath. In each case, XML works because the receiving system can rely on the structure being consistent and meaningful.

It is worth noting that the two languages often work together. A system might store its information in XML for reliability and then convert it into HTML for display in a browser, getting the best of both worlds – structured data behind the scenes and readable pages on screen.

What do you think? If you were designing a digital library catalogue, would you choose HTML, XML, or a combination of both to represent your records – and why? And as the web increasingly relies on machines reading content, how important do you think semantic markup will become for the future of information retrieval?

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

References
  1. https://www.stickyminds.com/article/markup-languages-what-they-are-and-why-they-matter
  2. https://www.semrush.com/blog/markup-language/
  3. https://www.htmlwasher.com/history-of-html/
  4. https://alistapart.com/article/a-brief-history-of-markup/
  5. https://www.deltaxignia.com/blog/the-world-of-xml-and-json/whats-the-relationship-between-xml-json-html-and-the-internet
  6. https://www.bitechnology.com/what-is-xml-how-is-it-used/
  7. https://www.brighthub.com/internet/web-development/articles/109224/
  8. https://medium.com/@AlexanderObregon/xml-in-the-real-world-use-cases-and-applications-8b3d2d928a12

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

ICT Fundamentals

1 Basics of Computer Technology

  1. Overview of Computer System
  2. Computer Peripherals and Hardware
  3. Computer Peripherals
  4. Computer Hardware
  5. Operating System
  6. Ubuntu Operating System
  7. Ubuntu File System
  8. Common Commands and Utilities

2 Basic of Communication Technology

  1. Analog and Digital Communication
  2. Data Communication Modes
  3. Communication Hardware
  4. Communication Protocols/Standard

3 Basic of Network Technology

  1. Network Concept and Classification
  2. Local Area Network (LAN) Overview
  3. Wide Area Network
  4. Wireless Technology

4 Technology Convergence

  1. What is Convergence?
  2. Goal and Objectives of Convergence
  3. Genesis of Convergence
  4. Convergence Focus
  5. Convergence Architecture
  6. Technology Convergence
  7. Bluetooth Technology
  8. 3G and WiMAX Technologies
  9. Protocol Convergence
  10. Access Convergence
  11. Service Convergence
  12. Convergent Applications

5 Office Tools- Word Processing, Presentation and Spreadsheets

  1. Getting Started with LibreOffice Suite
  2. Word Processing with Writer
  3. Presentations with LibreOffice Impress
  4. Spreadsheets with LibreOffice Calc

6 Database Management systems

  1. File Oriented Approach
  2. Database Approach
  3. Database and DBMS
  4. Levels of Abstraction in a DBMS
  5. Database Environment
  6. Various DBMS Architectures
  7. Types of DBMS Architectures
  8. Database Security
  9. Popular DBMS Packages
  10. Database Project Environment
  11. Database Administrator

7 Multimedia

  1. Multimedia
  2. Characteristics of Multimedia Systems
  3. Types of Media
  4. Print vs Multimedia
  5. Major Areas of Multimedia Use
  6. Advances in Technology
  7. Multimedia Design
  8. Software in Multimedia Systems
  9. Information Collection in Multimedia Systems
  10. Storyboard for Multimedia Systems
  11. Processing in Multimedia Systems
  12. Storing and Retrieving in Multimedia Systems
  13. Issues Related to Multimedia Systems
  14. Data Integrity in Multimedia Systems
  15. Career Path in Multimedia

8 Network Topology

  1. Physical and Logical Topologies
  2. Fully Connected Topology
  3. Star Topology
  4. Hubs and Switches
  5. Bus Topology
  6. Ring Topology
  7. Mesh Topology
  8. Tree Topology
  9. Hybrid Topology
  10. Media Access Control Protocols
  11. Address Resolution
  12. Routers
  13. Routing Algorithms

9 Communication Protocols and Network Addressing

  1. What are Protocols?
  2. Computing Protocols
  3. Communication Protocols: General Concepts
  4. Common Communication Protocols
  5. Basic Communication Protocols: IP, UDP, TCP
  6. Client-Server Architecture
  7. Application Level Communication Protocols: FTP, Telnet
  8. Switching Level Convergence Protocol: ATM
  9. Multi Protocol Label Switching: MPLS
  10. Telephone and Mobile Numbering
  11. Number Portability
  12. IP Addressing: IPv4, IPv6
  13. Web Communication Protocols: HTTP, WAP, LTP

10 Protocol Architecture

  1. Protocol Architecture and Protocol Stack
  2. Layered Architecture
  3. Principles of Layering
  4. ISO-OSI Reference Model
  5. Internet Protocol Architecture: TCP/IP Architecture
  6. Bluetooth Protocol Stack
  7. ISDN Reference Model
  8. ATM Protocol Stack
  9. SONET Hierarchy
  10. Mobile Network Protocol Architecture

11 Network Applications and Management

  1. Service and Application Types
  2. Electronic Text Messaging
  3. Multimedia Messaging
  4. Electronic Mail
  5. Interactive Television (ITV)
  6. Interactive Music (IM)
  7. Application Delivery
  8. Performance Issues
  9. Why Network Management?
  10. Simple Network Management Protocol (SNMP)

12 Network Security

  1. Why Information Security?
  2. Types of Attacks
  3. AAA Security
  4. Firewalls and Proxy Servers
  5. Web Security
  6. Malicious Software
  7. Viruses
  8. Spyware, Spam, Phishing and Cookies
  9. Encryption
  10. Digital Signature
  11. E-mail Security

13 E-Mail and E-Messaging

  1. Defining Email
  2. Need of Email
  3. Email Address
  4. Types of Email Services
  5. Types of Email Account
  6. Structure and Features of Email
  7. Functioning of Email Systems
  8. Messaging
  9. Issues with Messaging
  10. Widgets and Utilities

14 World Wide Web

  1. World Wide Web
  2. Conceptual Framework of WWW
  3. Communication Architecture
  4. Protocols
  5. Markup Languages
  6. Definition and Need (Markup Languages)
  7. Types of Markup Languages
  8. Web 2.0
  9. Features of Web 2.0 Applications
  10. Web 2.0 Applications
  11. Impact of Web 2.0 Tools Over WWW and Semantic Web

15 Search Engines

  1. Search Engines
  2. Types of Search Tools
  3. Features of Search Tools
  4. Architecture of Search Tools
  5. Challenges

16 Interactive and Distributive Services

  1. Web Directory
  2. Bulletin Board
  3. Mailing List and Discussion Lists
  4. Resource Sharing
  5. Online Document Repositories
  6. Web Portals
  7. E-mail
  8. Online Storage and Searching
  9. E-publishing
  10. Webcasting
  11. Interactive Learning
  12. Interactive Business and Trading
  13. Security and Privacy Issues