Differences between XML, HTML, CSS and JS, xmlcss
In BS, we have learned both xml, html, css, and js. At first, we cannot tell the differences and connections between the four. With the increase of knowledge, we have some experiences.
For the first time, let's take a look at what these four technologies are and what they can do?
(1) XML-Extensible Markup Language
Extensible Markup Language (a subset of standard universal Markup Language) is a simple data storage language that describes data using a series of simple tags that can be easily created, although the extensible markup language occupies more space than binary data, the Extensible Markup Language is extremely easy to grasp and use.
<Hello> <bcd>China</bcd> <bcd>USA</bcd> <bcd>UK</bcd> </Hello>
(2) HTML-Hypertext Markup Language.
Hypertext markup language. It marks parts of the web page to be displayed by marking symbols. A webpage file is a text file. By adding a tag to a text file, you can tell the browser how to display the content (such as how the text is processed and how the screen is arranged, ). The browser reads the webpage file in sequence, and then interprets and displays the marked content based on the tag,
HTML text contains the so-called "link point". HTML uses the hyperlink method to organize text information of different spaces in a mesh. In general, HTML is a language that integrates the webpage structure and content display.
(3) CSS-Cascading Style Sheet
Cascade style forms. It is a markup language that separates style information from webpage content. We have used CSS files in the niugu news publishing system to modify some label styles.
CSS is used to define a style for each HTML element. It can also be used on multiple interfaces. When performing global update, you only need to modify the style.
Body {border: 1px solid #000;/* overall border */font-size: 14px ;}
To put it bluntly, CSS is the language used to set HTML element attributes on a webpage.
(4) JavaScript
At first, I was particularly depressed. Why is its name so similar to Java?
This is a typical marketing success. Its successful promotion is also based on Java. When Microsoft began to realize that Javascript was popular among Web developers, Microsoft established its own scripting language, JScript.
Javascript is a scripting language based on Object and Event-Driven with secure performance. It is used to link multiple objects on a Web page with HTML hypertext markup language and Java scripting language (Java applet) to interact with Web customers. For example, you can set the mouse hover effect, verify the form on the client, create a custom HTML page, display a warning box, and set cookies.
function jsHello(){ alert('Hello World!'); }
Embed the code into the HTML language. A "Hello World" dialog box is displayed when the code is loaded. As for how to embed the video, we knew it at the beginning of learning the JS video.
The differences between XML, HTML, CSS, and JS are described as follows. If you are interested, please stay tuned to the help House website.
Articles you may be interested in:
- Filter all HTML code, CSS, and JS
- Php completely filters HTML, JS, CSS, and other tags
- Create your own RIA graphic tutorial using html css javascript
- Remove all js, html, and css code from php.
- Remove style, javascript, and css code from html in asp
- Construct Web IM remote and timely chat and communication programs using JavaScript/jQuery, HTML, and CSS
- Php compression HTML functions can be easily compressed html/js/Css and precautions
- JavaScript changes the style of HTML elements and changes CSS and element attributes.
- A simple image switching effect implemented using html + css + js