Home  >  Article  >  Web Front-end  >  What is the difference between xml and javascript

What is the difference between xml and javascript

青灯夜游
青灯夜游Original
2022-02-15 17:11:452909browse

Difference: 1. XML is a markup language, while JavaScript is a programming language (scripting language); 2. XML is used to describe and store data, while JavaScript is often used to add various elements to web pages. A variety of dynamic functions provide users with a smoother and more beautiful browsing effect.

What is the difference between xml and javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

xml introduction

gender markup language.

XML is similar to HTML. Both XML and HTML contain markup symbols used to describe the content of a page or file. However, HTML only describes how the content of a web page (mainly text and graphic images) is displayed and interacted with. For example, the letter "p" placed within the marker tag will start a new paragraph.

XML describes content based on the data being described. For example, the word "phonenum" placed within a markup tag may indicate that the subsequent data is a phone number. XML files can be processed entirely as data by a program, they can be stored with similar data on other computers, or they can be displayed like HTML files. For example, depending on how the application in the receiving computer handles a phone number, it can be stored, displayed, or dialed.

Introduction to javascript

JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compilation with function priority programming language. Although it is famous as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is based on prototype programming, a multi-paradigm dynamic scripting language, and supports object-oriented, imperative and declarative ( such as functional programming) style.

JavaScript is a programming language that runs on a web browser. It is mainly added to websites built using HTML and CSS, and plays a role in achieving various page dynamic effects.

The difference between xml and javascript

XML is a markup language used to mark electronic documents to make them structured; JavaScript is A lightweight, interpreted or just-in-time compiled programming language with function precedence.

xml is used to describe and store data, and will describe the content based on the described data.

JavaScript is often used to add a variety of dynamic functions to web pages to provide users with a smoother and more beautiful browsing effect.

[Related recommendations: javascript learning tutorial]

The above is the detailed content of What is the difference between xml and javascript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn