JavaScript Function
<html> <head> <script type=”text/javascript”> function displaymessage() { alert(“Hello World!”); } </script> </head> <body> <form> <input type=”button”...
View ArticleAlert Box
An alert box is often used if you want to make sure information comes through to the user. When an alert box pops up, the user will have to click “OK” to proceed. Syntax alert(“sometext”); Example...
View ArticleConfirm Box
A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either “OK” or “Cancel” to proceed. If the user clicks “OK”, the...
View ArticlePrompt Box
A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either “OK” or “Cancel” to proceed after entering an...
View ArticleWhat is XML?
XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data XML tags are not predefined. You must define your own tags XML is...
View ArticleThe Difference Between XML and HTML
XML is not a replacement for HTML. XML and HTML were designed with different goals: XML was designed to transport and store data, with focus on what data is HTML was designed to display data, with...
View ArticleWith XML You Invent Your Own Tags
The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are “invented” by the author of the XML document. That is because the XML language has...
View ArticleXML is Not a Replacement for HTML
XML is a complement to HTML. It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the...
View ArticleXML Separates Data from HTML
If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes. With XML, data can be stored in separate XML files. This way you can...
View ArticleXML Simplifies Data Sharing
In the real world, computer systems and databases contain data in incompatible formats. XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data....
View ArticleXML Simplifies Data Transport
One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet. Exchanging data as XML greatly reduces this complexity, since the data can...
View ArticleXML Simplifies Platform Changes
Upgrading to new systems (hardware or software platforms), is always time consuming. Large amounts of data must be converted and incompatible data is often lost. XML data is stored in text format. This...
View ArticleXML Makes Your Data More Available
Different applications can access your data, not only in HTML pages, but also from XML data sources. With XML, your data can be available to all kinds of “reading machines” (Handheld computers, voice...
View ArticleXML is Used to Create New Internet Languages
A lot of new Internet languages are created with XML. Here are some examples: XHTML WSDL for describing available web services WAP and WML as markup languages for handheld devices RSS languages for...
View ArticleAn Example XML Document
XML documents use a self-describing and simple syntax: <?xml version=”1.0″ encoding=”ISO-8859-1″?> <note> <to>Tove</to> <from>Jani</from>...
View ArticleXML Documents Form a Tree Structure
XML documents must contain a root element. This element is “the parent” of all other elements. The elements in an XML document form a document tree. The tree starts at the root and branches to the...
View ArticleWhat is an XML Element?
An XML element is everything from (including) the element’s start tag to (including) the element’s end tag. An element can contain other elements, simple text or a mixture of both. Elements can also...
View ArticleXML Naming Rules
XML elements must follow these naming rules: Names can contain letters, numbers, and other characters Names cannot start with a number or punctuation character Names cannot start with the letters xml...
View ArticleAvoid XML Attributes?
Some of the problems with using attributes are: attributes cannot contain multiple values (elements can) attributes cannot contain tree structures (elements can) attributes are not easily expandable...
View ArticleXML Attributes for Metadata
<messages> <note id=”501″> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don’t forget me this weekend!</body>...
View Article
More Pages to Explore .....