What are the programming language Markup Language scripting languages? What's the difference?

Source: Internet
Author: User

Copyright belongs to the author.
Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
Caisufan
Links: http://www.zhihu.com/question/22443881/answer/48223449
Source: Know

I. Definition of individual
Markup language

Markup language, which is a combination of text and other information related to text, shows the computer text encoding of the structure of the document and the details of the data processing. Additional text-related information, such as the structure and presentation of text, is combined with the original text, but is identified with a tag (markup).

such as: HTML, XML

scripting language

The scripting language is a computer programming language created to shorten the traditional authoring-compile-link-run (edit-compile-link-run) process. Its name originates from a script "screenplay", which repeats the dialog box verbatim each time it is run. Early scripting languages are often referred to as bulk processing languages or work control languages.
A script is usually interpreted as running rather than compiled. Scripting languages often have simple, easy-to-learn, easy-to-use features that are intended to allow programmers to quickly write programs.

such as: JavaScript, VBScript, PHP

Compiled languages

Compiled language: The program needs a special compilation process before execution, the program is compiled into machine language files, the runtime does not need to re-translate, directly using the results of the compilation is OK. High efficiency of program execution, relying on compiler, poor cross-platform

such as C, C + +

Second, the difference

1, markup language is not used to send instructions to the computer, often used for formatting and linking.
2, scripting language between markup language and programming language, scripting language scripting language does not need to compile, can be used directly, by the interpreter to be responsible for interpretation.
3, the compiler language written program execution, need a special compilation process, the program compiled into machine language files, such as EXE files, later to run without re-translation, directly using the results of the compilation (EXE file), because the translation is only done once, the runtime does not need to translate, Therefore, the program execution efficiency of the compiled language is high.

The difference between markup language and programming language

The simplest understanding is that the programming language has logical and behavioral capabilities, and the latter does not.


Markup Language (Markup language), with XML, HTML, XHTML (XML and HTML) you'll see that they're all "ml" tails.

The existence of a markup language to be read, such as an SVG file, is actually written in XML. And it is in itself incapacitated. In markup language you will see a lot of < and > these drill brackets, which are used to write "hierarchies" and "attributes". In short, he's passive.

In the programming language, you will see a lot of if else for while print ... These are logical and behavioral directives. This is the initiative.

What are the programming language Markup Language scripting languages? What's the difference?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.