Advertise Here

Author Topic: Java VS JavaScript VS HTML  (Read 13961 times)

0 Members and 1 Guest are viewing this topic.

guest4485

  • Guest
Java VS JavaScript VS HTML
« 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: [Select]
<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: [Select]
<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: [Select]
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}

Offline Shimmy Shabby

  • SMF For Free Full Member
  • *
  • Posts: 143
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Java VS JavaScript VS HTML
« 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 :)

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


Offline Kalphiter

  • SMF For Free Full Member
  • *
  • Posts: 135
  • DE30AC #409
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Java VS JavaScript VS HTML
« 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.

guest4485

  • Guest
Re: Java VS JavaScript VS HTML
« Reply #3 on: July 01, 2008, 10:20:57 am »
thanks

 

Related Topics

  Subject / Started by Replies Last post
20 Replies
14405 Views
Last post June 05, 2008, 06:34:37 am
by Crasy
1 Replies
1512 Views
Last post January 05, 2008, 01:30:11 pm
by LaundryLady
1 Replies
3041 Views
Last post February 01, 2008, 03:47:07 am
by Celebrus
3 Replies
10870 Views
Last post November 10, 2008, 09:55:02 pm
by ImthEhAppYEmO
3 Replies
10052 Views
Last post July 18, 2014, 11:42:59 am
by SMF For Free