MARK UP LANGUAGE, SCRIPTING LANGUAGE, PROGRAMMING LANGUAGE

MARK UP LANGUAGE, SCRIPTING LANGUAGE, PROGRAMMING LANGUAGE

·

5 min read

When it comes to making a website or app, coding involves basically three types of languages i.e the mark up language, Scripting Language and programming Language. This article would be focusing on Mark Up language and Programming language. Scripting languages are basically the subcategory of programming languages so we would be explaining that at the end of this article.

In creating an efficient and user friendly website or application,one needs to understand every single language fits a particular category and we need to know which category that language fits into. We will discuss in detail about the difference between these three main categories or pillars of a website or an app development i.e. Programming language and Markup Language.

To kickstart, the main difference between markup language and programming language is that a markup language defines a set of rules for encoding documents in a format that is both human-readable and machine-readable while a programming language provides a set of commands and syntax that can be used to write computer programs which are understood by the computer.

What is a Markup Language

A markup language is a computer language that uses tags to define elements within a document. They are easier to read. These languages are designed to create a structure, identify data or to present data rather than to execute an action or to perform an action. The text present in the tags is structured by the web browser accordingly. These are presentational languages and it doesn’t include any kind of logic or algorithm.

HTML, XML, and XHTML are some common markup languages. HTML stands for HyperText Markup Language. It is used to create the structure of a web page. The file is divided into two sections called the head and the body. The head section contains the metadata, title etc. The body contains the visible elements of the page. There are tags for tables, forms, paragraphs, headings and many more. XML stands for Extensible Markup Language. XML tags are used to store and organize data. It is platform and language independent. XML helps to share data between completely different platforms. It is used with databases, programming languages and mobile applications. Moreover, XHTML stands for Extensible HyperText Markup Language. It is a combination of both HTML and XML. XML parser are used to parse these XHTML documents.

What is a Programming Language

A programming language is a formal language that contains a set of commands and syntax to create software programs. These programs can perform a specific task. Programming languages are mainly divided into two sections. They are high-level languages and low-level languages.High-level language uses syntax similar to the English language. Therefore, those languages are easier to read and are understandable by the programmer. These programs are also called the source code. The source code is converted into machine-understandable machine code using a compiler or an interpreter. C, C++, Java, Python are some examples of high-level programming languages. There are used to develop web, desktop, mobile applications, etc. Low-level programming languages are more machine friendly. They directly interact with the hardware. Two common examples of low-level languages are machine language and assembly language. Machine language consists of binaries, and it is extremely difficult to write a program in machine code. However, assembly language is one step ahead of machine language. One needs to have a good knowledge of computer architecture to write assembly programs. An assembly program is converted into machine language using an assembler. These languages are commonly used to develop hardware based applications like operating systems and device drivers.

Difference Between Markup Language and Programming Language

Definition

A markup language is a system for annotating a document in a way that is syntactically distinguishable from the text. In contrast, a programming language is a formal language that contains a set of instructions used to produce various kinds of output. Thus, this is the main difference between markup language and programming language.

Functionality

Another difference between markup language and programming language is that a markup language is interpreted by the browser while a programming language is compiled by a compiler or interpreted by an interpreter. Examples HTML, XML, and XHTML are some examples for markup languages. C, C++, Java, Python, and Assembly are some examples for programming languages.

Usage

We can find a difference between markup language and programming language based on the usage as well. That is, the markup language is used to present information whereas programming language is used to give instructions to a computer to perform a particular task.

What is a Scripting Language

As the name suggest, it’s all about giving the script to perform some certain task. Scripting languages are basically the subcategory of programming languages which is used to give guidance to another program or we can say to control another program, so it also involves instructions. It basically connects one language to one another languages and doesn’t work standalone. Javascript, PHP, Perl, Python, VBScript these all are the examples of scripting language. Scripting languages need to be interpreted (Scanning the code line by line, not like compiler in one go) instead of compiled. There is no scope of compiler in scripting languages. Scripting languages are most widely used to create a website.

Conclusion

The difference between markup language and programming language is that a markup language defines a set of rules for encoding documents in a format that is both human-readable and machine-readable while a programming language provides a set of commands and syntax that can be used to write computer programs which are understood by the computer. Please do note that scripting languages are basically the subcategory of programming languages.