A markup language is a computer language for clarifying the contents of a document. It was designed to process, define, and present computer text in a form that humans can read. It specifies the code used to format text, including the style and layout the programmer wants the document to appear. It uses tags to define these elements.
You can think of using markup language like a teacher grading student exams. The teacher “marks” mistakes, so students know why they were given a particular score.
Read More about a “Markup Language”
What Are the Most Popular Markup Languages Used Today?
We compiled a list of some of the most commonly used markup languages below.
HyperText Markup Language (HTML) is perhaps the most widely used markup language today. It is mainly used to develop the web pages we see on the World Wide Web. Essentially, every web page can be written using a version of HTML. That makes the code critical in ensuring that the text and images on a website follow proper formatting. Without it, browsers would have no clue how the content should be displayed.
HTML is also responsible for giving web pages their basic structure. It is often used with Cascading Style Sheets (CSS) to improve page appearance.
eXtensible Markup Language (XML) is highly similar to HTML. It allows browsers to display and interpret information correctly. But as its name implies, XML is extensible. It permits a tag to define itself based on a given description of the content rather than just display it.
Bulletin Board Code (BBC or BBCode) is commonly used to format posts in message boards. The tags are usually placed in-between square brackets ([ ]) before they undergo parsing or breaking down sentences into parts to describe their roles by the message board system. The code is then translated to a markup language that most web browsers can interpret, usually in HTML. Some message boards prefer using BBC since it allows markups to be done without triggering security alerts when forum users use HTML code in their posts.
Standard Generalized Markup Language (SGML) is an International Organization for Standardization (ISO) standard that provides a general structure for all markup languages. It outlines the rules used to validate and parse markups. Note, though, that not all markup languages, such as HTML5, adhere to the SGML standard.
Markup Language versus Programming Language: What’s the Difference?
Markup languages are sometimes confused with programming languages, but they are entirely different. Markup languages are series of tags mixed with plain text. If deleted, plain text could be interpreted in a wholly different manner, such as a list or numbered enumerations. Markup languages tell browsers what rules to follow, so the text remains human-readable.
In contrast, programming languages provide a set of commands for writing programs or applications that any computer can understand.
Knowing the answer to “What is a markup language?” hopefully helped you understand what it takes to put websites together.