In my personal opinion, html has never been regarded as a programming language, and someone has seen it as a markup language. I am increasingly confused about some of the new features in html5. I hope my predecessors can give me some advice. In my personal opinion, html has never been regarded as a programming language, and someone has seen it as a markup language.
I am increasingly confused about some of the new features in html5. I hope my predecessors can give me some advice. Reply content: HTML and even any markup language cannot be regarded as a programming language, because they only mark data and cannot be used to process data. See
Http://www.cs.tut.fi /~ Jkorpela/prog.html
What new HTML5 features confuse you? HTML is a markup language and does not have Turing completeness. It should not be a programming language. HTML5 is more like a platform than a language. Html5 contains html and other basic tags. Some people also classify css3 into html5. What's more epoch is that html5 provides many js APIs, calling these Apis through js can achieve many complete programming languages.
In an inappropriate analogy, a programming language is a cook, and a program is a dish. Html5 is like a kitchen, js is a cook, css is similar to a variety of spices, html5 new APIs are like refrigerators and various kitchenware. The kitchen provides ingredients for chefs to cook. A set of (Computer) languages are protocols that define the meanings of a series of specific syntax structures.
HTML is a protocol between people and HTML Parser (parsing and rendering). A specific HTML text attempts to characterize a webpage through HTML-defined tag rules. Layout and contentWhich can be embedded or referenced externally. Another Language (Protocol) for static modification of layout and content is called CSS, you can also embed or reference a "Programming Language" that dynamically sets the layout and content from outside, such as JavaScript.
A programming language is a protocol between people and programming compilers (compiler) or interpreters (intepreter), which specifies Execution ProcessFor imperative programming languages (imperative programming language) and functional programming languages (functional programming language), this interpretation is different, but it must be the content that represents execution, instead of static layout and content. One of the most basic problems is that the programming language is a human-computer interaction language used to solve a problem by processing the logic commands of the problem to the computer to obtain the corresponding results. html5 is a markup language, it is essentially an information carrier and does not have the ability to handle the problem logic, so it is not a programming language. Markup language. However, HTML5 in the broad sense includes js API + CSS3. Is this a programming language? If it is not a programming language, it can be understood literally. At least the focus of programming is on programs. You need to use complicated logic commands to achieve certain functions or simulate some behaviors. HTML5 is just a markup language, focuses on marking and carrying.
Therefore, HTML5 is a kind of information storage and management. Programming languages are logical processing and execution. Without the complete Turing, not counting the Programming Language html as a markup language. More importantly, it serves as a carrier for information presentation and focuses on the information presentation form.
The function of programming languages is to collect, filter, and sort information in this logical process.
There are many new features in html5, but the overall focus is on information presentation, rather than processing information.
Of course, this is only for developers. It does not matter whether html5 is a programming language.
Moreover, it cannot be guaranteed that the current situation will always be the same. After all, it is constantly evolving, and the boundaries between markup and programming languages will become increasingly vague. Who makes it clear what tomorrow will look like. This question is not rigorous, so it is difficult for you to reach a satisfactory conclusion.
There is no clear definition of what is "programming language.
If the programming language is defined as the computer language used in the programming process, HTML5 can be considered as a programming language.
If you define a programming language as a computer language that describes the logic, HTML5 is almost not. Here, "almost" is because CSS3 still has a little bit of logic to describe:-) HTML5 is more suitable for code Standardization standards.
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