Scripting on the web
Web pages are created using HTML (hypertext markup language) or XML (extensible markup language) which create static content (text and images). Web scripting changes all that, it allows the use of interactive content, the simplest example of this would be changing the color of a button when hovering over it or clicking it a more complex example would be creating an online game, but let’s take it one step at a time … you’ll get there.
Dynamic content can be added to web pages using scripting, a script consists of a set of instructions that are executed under certain conditions.
Scripting is a important part of web development, scripting allowing you to turn your static HTML website into a dynamic one. It makes it possible for users to interact with the website, to give information themselves in a form or the website might collect information about them, like the IP.
Client-side and Server-side scripting
When it comes to web scripting we can split it in two categories by where they are run: on the client side and on server side.
To make it easier to understand it’s all about where they are executed. First we will talk about the client side environment which usually is the browser, the processing taking place on the users computer. The scripting language needs to be enabled on the users computer, if the user turned that functionality off because of security concerns a pop up will appear to let them know that a script can not be executed.
The server side environment runs a scripting language on a web server where the html web page is generated and then it is sent to the client browser, it is usually used to provide interactive web sites that interface to databases or other data stores on the server.
The most widely used languages for server side programming are PHP, ASP.NET, JSP, Python and Ruby on Rails.