SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 01:03:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Java VS JavaScript VS HTML  (Read 580 times)
0 Members and 1 Guest are viewing this topic.
Jason Jones
SMF For Free Member
*
Offline Offline

Posts: 31


Live for yourself because life is too short


View Profile WWW
« on: June 04, 2008, 10:41:02 pm »

Okay if your a starter coder looking to learn something this will help you choose what to learn first.

HTML codes are simple in order to write Hello World in this forums default font you just put this code
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<FONT>Hello World</FONT>
</BODY>
</HTML>
HTML can get more complicated of course.

JavaScript is a more advanced scripting language. It was made by Netscape is NOT the same as Java so don't get those confused because trying to learn Java as your first coding language will be a disaster!

Writing of Hello World in JavaScript
Code:
<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

function MsgBox (textstring) {
alert (textstring) }

// - End of JavaScript - -->
</SCRIPT>

</HEAD>


<BODY>
<SCRIPT>
<!--
document.write("Hello World")
/--!>


</BODY>
</HTML>

Java
Code:
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}
« Last Edit: July 01, 2008, 10:20:50 am by Jason Jones » Logged

Shimmy Shabby
SMF For Free Full Member
*
Offline Offline

Posts: 143



View Profile
« Reply #1 on: June 28, 2008, 12:50:51 am »

Lol, i got the java hello world code for you right here... Its in .java form(un-compiled) not .class(compiled) form but oh well Smiley

Code:
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}
Logged


Kalphiter
SMF For Free Full Member
*
Offline Offline

Posts: 136


DE30AC #409


View Profile
« Reply #2 on: June 28, 2008, 11:23:10 am »

Why Java? Java is a programming language. HTML is a markup language (ML, like HTML= hyper text markup language), and JavaScript is a scripting language. You're comparing apples(applet get it?) to smilies to cows.
Logged
Jason Jones
SMF For Free Member
*
Offline Offline

Posts: 31


Live for yourself because life is too short


View Profile WWW
« Reply #3 on: July 01, 2008, 10:20:57 am »

thanks
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.307 seconds with 16 queries.