English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I've known HTML and Java for quite a while, but have not kept up with the latest in programming. Can anyone explain the main differences? Is HTML for Windows and C ++ for Mac or something to that degree?

2006-12-22 12:18:22 · 9 answers · asked by D 2 in Computers & Internet Programming & Design

9 answers

HTML is a markup language and is for any platform that has a web browser. Same with Java, though you'll need a platform that supports the runtime required. C++ is, as far as I know, only for windows and is for making applications.

2006-12-22 12:20:59 · answer #1 · answered by Anonymous · 0 2

I wouldn't call HTML programming, but back to your quesiton.

HTML is for coding web pages and is completely different to C++ and Java. All 3 work on all operating systems (certainly not just windows), but Java is basically the same on all platforms, where C++ may require some minor changes unless your using some heavily Operating System (windows/mac/linux) libraries.

C++ is more low-level then Java, which means it is faster than Java, but it will take you longer to write programs. This is because Java does a lot of work for you in the background which slows it down but saves you time.

PHP is a complement to HTML, by that I mean PHP is used to create HTML and is not a replacement to HTML.

2006-12-22 12:23:47 · answer #2 · answered by michaelnoack1 1 · 1 0

AS was stated, HTML is your basic Web page language (look at the "source" for any web page, including this one, for a sample). Java is a programming language that is somewhat easy if you're a C programmer, that allows you to make little "applets" that are called by HTML code. Both HTML and Java are portable between platforms.

C++ is Microsoft's implementation of the C programming language. You basically write the code, the "compile" it to an executable that runs on a specific platform. In theory, you could compile the same C code with different compilers for different platforms, but it never ever works like that.

Microsoft is trying to combine all major programming codes into .Net (pronounced "dot net), and if you want to develop for the Windows platform, that is your future.

2006-12-22 12:24:59 · answer #3 · answered by geek49203 6 · 0 2

First of all, I'm thinking that you are confusing Java and javascript. Html is of course not a language at all, but rather a document markup format. HTML pages are not programs. The way to get some functional manipulation of a static html page is to use javascript, which most browsers have added support for. The embedded support allows you to manipulate a built-in set of objects called the Document Object Model (DOM) that the browser surfaces to javascript.

As for syntax, javascript was based closely on the c language, with memory management and pointers removed, and with a few object syntax extensions thrown in.

Thus the father of javascript, c++ and java is c.

c is a procedural language and was created to support the development of unix. It's known for its compactness and speed, and assumes a compilation and linking process. Many operating systems were written in c, and Api's were based on it.

Devotes of object oriented programming inspired c++, which was an effort to enhance c with Oop. Once it emerged, it quickly gained steam as the commercial PC development language of choice for large scale applications, both because it offered a stepping stone to c programmers, and because it retained c's low level capabilites and compilation architecture.

When Sun engineers set out to develope a portable language, they decided to base the syntax of Java on C++. Not unlike what Netscape did with Javascript, Java is a simplified C++, removing memory management details that would be inappropriate for a portable language like Java.

To summarize, c, c++, java and javascript are all computer programming languages. HTML, css, and XML are all document formats that are designed to allow you to create and markup documents. They are focused on presentation, whereas languages are focused on functionality and interactivity.

What you didn't mention in regards to HTML and javascript, are the other "serverside" languages so often paired with them. PHP, ASP, Java, Coldfusion, Ruby and Perl are the ones most often used in website development these days.

2006-12-22 12:33:53 · answer #4 · answered by Gizmo L 4 · 2 0

No, not really. HTML Is mainly an old form of internet programming, now PHP is more common than that. Java is a programming language like Delphi and VB and C++, but is known for its network programming abilities. C++ is used basically for console programs, but is also used for basically anything the computer can do. It is also known as one of the hardest programming languages to learn.

2006-12-22 12:21:25 · answer #5 · answered by ChipChamp 4 · 0 1

HTML and Java are both interpreted languages. This means that each line of the program is executed right after it is read. C++ is compiled, which means that the entire program is read into memory before the first line of code is actually executed.

2006-12-22 13:51:46 · answer #6 · answered by Richard H 7 · 0 1

A little PHP knowledge with HTML is all you really need on the net.

2006-12-22 12:23:58 · answer #7 · answered by doug 2 · 0 1

html, dhtml, java script can be used to creat web pages and other prog's...c is the hardest one , AJAX for example is acombination of xml and java....any way c is mostly use in creating cgi(common gateway interface) which used in creating search engines(google,msn,yahoo)

2006-12-22 12:27:56 · answer #8 · answered by laith jazi 1 · 0 1

And to correct something said above, Microsoft had nothing to do with the creation of C++, which is a creation of Bjarne Strousup who was with ATT.

2006-12-22 12:44:27 · answer #9 · answered by drhowarddrfine 2 · 1 0

fedest.com, questions and answers