Question:
what is the difference between XML ,JavaScript, and HTML?
siva
2006-03-14 04:22:39 UTC
in java application programming how to use these topics
Three answers:
pogowolf
2006-03-14 05:51:32 UTC
HTML: HyperText Markup Language

What HTML is, is nothing more then a way to 'markup' text to display it in another way. For example, if you've ever taken document Editing classes in English class back in High school. you most likly had a class that delt with this. Where you needed to put in a symbole that told a typist that a new paragraph was needed 'here' on the page, or that this word was mis-spelled. This is what HTML is. it's those 'symbols' that tell the browser 'ok, this word needs to be bold. and this one needs to be underlined' etc.

and it uses 'tags' to do this. For example, if you wanted a word to be bold you would use the 'bold' tag to say

"this WORD is bold." the are the tags.



Now XML (eXtensible markup language)

is a way to make up your OWN tags. XML is a text file that has information stored in it in a logical manner.

so you could have something like



Pogo

Wolf





again they are tags.. but you make then up yourself. And then you can parse(read) the XML file from server side scripting in order to pull the data out of the XML file for use. You can also think of an XML file as a flat file

database.



and JavaScript

This is a scripting language. This is a real programming language that browers understand. For example let's say in HTML you have a text box where someone can type in something.. but you don't want them to write naughty words in it. You could use Javascript to parse the text that was typed in in order to check for naughty words.



Javascript allows you to do things on a webpage that HTML and XML won't let you do. HTML is the base, with Javascript sitting on top of it. XML is like a data file standing outside the main sphere of HTML/Javascript.
2006-03-14 13:13:21 UTC
In simple words?

HTML is simply a mark-up language: you tell the text to be bold or the table to be this wide or that long.



CSS--you didn't ask about this one, but I'll explain it anyway. CSS is a list of instructions that tell the browser how to format or change or make the HTML appear. For example, want the text in the table with the id of "RedTable" to be red? Write, #RedTable{ color: red;}.



JavaScript: it's a programming language. It's purpose is to make the website interactive. As opposed to HTML, which doesn't really have actions or events or anything that happens because you do something, except for the color of a link changing when you hover over it, JavaScript does. Say, you want an alert box to pop up when you click a link and have it say something, JavaScript can do that. It makes something happen because of something else, whether the page loading or the user clicking.



XML: It's the future of web design. You make you own tags. With HTML, you may stick, for example, a paragraph about you within a "p" tag...but with XML, you can stick it in an "aboutme" tag or an "about" tag. You design your own tags depending on the subject or whatever. It goes hand in hand with CSS, in fact: without tags that have set attributes, as in HTML, the browser doesn't know how to render it. So, with CSS, you style it and make it the way you want.



There are several other languages used on the web, such as PHP. PHP is a great tool. It's a server-side language and renders everything, therefore, on the server. I wont go into that, though.



There's some computer languages in a nutshell! :)
captaincoolbeard
2006-03-14 04:31:53 UTC
I don't know anything about xml, but javascript is basically a fancier html. HTML is your basic put stuff there and make it do simple dodads. javascript actually lets you make if then statements and is a 'real' programming language. Both can be programmed in notepad and javascripts are embedded in html doccuments.(they're flagged with
Loading...