The difference between XML, HTML, CSS and JS _javascript skills

Source: Internet
Author: User

In the BS, Xml,html,css and JS we have learned, at first the difference between the four and contact, with the growth of knowledge, with some experience.

For the first time, let's look at what these four technologies are all about, what can we do?

(i) xml-extensible Markup Language

Extensible Markup Language (a subset of standard generic markup languages) is a simple data storage language that uses a series of simple tags to describe data that can be built in a convenient way, although the Extensible Markup language takes up more space than binary data. However, extensible Markup language is extremely simple and easy to master and use.

<Hello> 
<bcd>China</bcd> 
<bcd>USA</bcd> 
<bcd>UK</bcd> 

(ii) Html-hypertext Markup Language.

Hypertext Markup Language. It marks the parts of the page to be displayed by marking symbols. The Web page file itself is a text file, by adding a marker to the text file, you can tell the browser how to display the contents (such as how the text is handled, how the picture is arranged, how the picture is displayed, etc.). The browser reads the Web page file sequentially, and then interprets and displays the contents of its markup based on the marker.

 
 

The HTML text contains the so-called "link point" HTML, which uses hyperlinks to organize text messages of various spaces together in a mesh of texts. In general, HTML is a language that consolidates the structure and content of Web pages.

(iii) css-cascading Style Sheet

Cascading style sheets. is a markup language that separates style information from Web page content. In our beef brisket press release system, we used CSS files to modify the style of some tags.

We use CSS to define styles for each HTML element, or for multiple interfaces. When you make global updates, you just need to modify the style.

Body { 
border:1px solid #000;/* The Whole border * * * 
font-size:14px; 

To put it bluntly, CSS is the language that sets HTML element attributes on a Web page.

(iv) JavaScript

First of all, why is its name so similar to Java?

This is a typical marketing success, its promotion is successful, but also borrowed the east wind of Java. As Microsoft became aware of the popularity of JavaScript among Web developers, Microsoft had always styled itself, creating its own scripting language, JScript.

JavaScript is a scripting language that is object-based (object) and event-driven (driven) and has a secure performance. It is intended to be used with HTML Hypertext Markup Language, Java scripting language (Java applets) to link multiple objects in a Web page and interact with web customers. For example, you can set a mouse hover effect, validate the form on the client, create a custom HTML page, display a warning box, set cookies, and so on.

function Jshello () { 
alert (' Hello world! '); 

Embedding code in the HTML language, it pops up a "Hello World" dialog box at load time. As for how to embed, we have learned from the beginning of the JS video.

About the difference between XML, HTML, CSS and JS to introduce so many people, the follow-up will give you a brief introduction to the effect of the combination of those. Interested friends please pay attention to cloud Habitat community website.

Related Article

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.