XML and JavaScript are markup languages used to make web pages interactive. XML is used to transport and store data, with tags defined by the user. It focuses on what data is, unlike HTML which focuses on how data looks. JavaScript is a scripting language run in web browsers to dynamically perform tasks, like calculating dates. It was designed to run on Netscape Navigator and is now standard in web browsers. While HTML defines static content, JavaScript performs dynamic tasks.
2. XML Made in the mid 1990’s XML is a set of rules for encoding documents in a machine-readable form XML is a software- and hardware-independent tool for carrying information XML stands for Extensible Markup Language It is designed to transport and store data It is important to know, and very easy to learn
3. XML vs. HTML XML is a markup language much like HTML XML is not a replacement for HTML XML was designed to transport and store data, with focus on what data is HTML was designed to display data, with focus on how data looks
4. XML Tags Tags are not predefined. You must define your own tags Designed to be self-descriptive It is just information wrapped in tags. Someone must write a piece of software to send, receive or display it
5. XML Example <?xml version="1.0"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
6. JavaScript JavaScript is a programming language that is used to make web pages interactive. It runs on your visitor's computer and does not require constant downloads from your web site.
7. What is JavaScript? JavaScript is a scripting language. It is only loosely related to Java, and is not a true object-oriented language JavaScript can be quickly added to a pure HTML page to provide dynamic features, such as automatically calculating the current date or activating an action
8. History of JavaScript JavaScript was designed to run on Netscape Navigator. Its success there led to it becoming standard equipment in virtually all web browsers.
9. JavaScript vs. HTML HTML and JavaScript are two completely different things HTML is a markup language designed for defining static web page content JavaScript is a programming language designed for performing dynamic tasks
10. JavaScript Example <html> <head> </head> <body> <script type="text/javascript" src="xxx.js"> </script> <p> The actual script is in an external script file called "xxx.js". </p> </body> </html>