Markup Language
For who
I write it for my brother that has some experience in writing blog, and start to learn HTML.
Problem
European Organization for Nuclear Research or CERN (derived from the name Conseil Européen pour la Recherche Nucléaire) had 2,500 scientific, technical, and administrative staff members, and hosted about 12,000 users, generated 49 petabytes of data, in 2016 only. This is a real problem when you want to prepare a system for researchers to use and share these documents.
In 1980, physicist Tim Berners-Lee, a contractor at CERN, proposed and prototyped ENQUIRE — first version of HTML and its browser — and solve this problem.
ML
Markup Language (ML) is not a language, it is a method. In this method we tag everything. For example, this is a window, and we stick a tag to it. With this tag, we know what it is. We name it Window.
Hyper Text Markup Language is not a language. It is only a standard, or rather, it is a manifest between World Wide Web Consortium (W3C) and Browsers.
HTML is a collection of predefined tags.
How define a tag?
We can cut a paper and write on it. This can be useful in the real environment. But for a Browser, you need to learn their way of defining tag.
Browsers designed to represent documents. Documents like books are a collection of texts and images. If we use our literature knowledge, they are a collection of sections, headers, paragraphs, and images.
We can zoom more and more and say, a book is a collection of verbs, adjectives, sentences, paragraphs, and images, figures, and so on. This zoom is on your hand and you can tag word by word, or only tag paragraphs and headers.
Get Esmaeil’s stories in your inbox
Join Medium for free to get updates from this writer.
Working with documents in Browsers make our job simpler. We only tag texts.
<tagName>Our Object</tagName>
Standard Generalized Markup Language
We have recognized we can create tags physically and programmatically, and use it for every object we want. But if we want to communicate with others it’s better to be general standard tags that all of us use them. This kind of collection of tags (standard) called, Standard Generalized Markup Language (SGML). The specific type of SGML that used most of the time in web pages, called HTML.
Standards get version
All kind of standards has version, like Euro 1 for petrol cars to reduce carbon monoxide (CO) emissions. From 1992 until know it takes 6 version.
The first publicly available description of HTML was a document called “HTML Tags”, first mentioned on the Internet by Tim Berners-Lee in late 1991. It describes 18 elements comprising the initial, relatively simple design of HTML.
In next link, you can find that 18 elements.
But how we can validate a document to know whether is followed our specific standard or not?
Validate a document
W3C use another markup language to define the structure and legal elements (tags) in a document. Document Type Definition (DTD) is a kind of markup language that adds to SGML file (like HTML) to define legal tags to browsers. See how we add an HTML 4.01 document type:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
The important parts of it are; DOCTYPE tag and URL to a DTD file that tells the browser how to validate which of our tags is legal. You always see this tag in the first line of your HTML documents even in HTML 5 that it only writes;
<!DOCTYPE html>
If you don’t use to write it — don’t worry — Browsers can handle it.
HTML 101
<!DOCTYPE html>
<html>
<head>
<title>Document Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Title, h1, and p are the one of oldest tags in HTML.
What we don’t cover here?
We don’t talk about attributes, stylesheets, and schemas, eXtensible Markup Language (XML), and browser.
What we know?
We know we have a method to tag everything in our real world, specifically our documents. We can make a collection of general tags as a standard and validate documents with our standard. W3C already has been writing some general standards that well known as HTML.







