JavaScript is a programming language for making websites interactive.
- JavaScript is one of the main languages for web developers, the other two are HTML and CSS.
- JavaScript is a scripting language – so the computer can interpret it line by line rather than compiling it.
- JavaScript is different from Java or jScript. They are different programming languages.
- You might have seen JavaScript affects on website, for example it can be used to create sliding image banner, dropdown navigation menu, form validation and image animation etc.
- On web pages we use:
- HTML for content for example for showing a text, paragraph, image or link etc.
- CSS for presentation for example for applying colours, positioning of elements and size of text etc.
- JAVASCRIPT for behaviour for example for sliding images from right to left and showing form validation errors etc
1 2 3 4 5 6 7 8 9 10 |
<html> <head> </head> <body> <any>content</any> <any>content</any> <any>content</any> <script type="text/javascript" src="path/to/javascriptfile.js"></script> </body> </html> |