The client-side environment used to run scripts is usually a browser. The processing takes place on the end users computer. The source code is transferred from the web server to the users computer over the internet and run directly in the browser.
Client-side scripting is performed to generate a code that can run on the client end (browser) without needing the server side processing. Basically, these types of scripts are placed inside an HTML document. The effective client-side scripting can significantly reduce the server load.
Example : Some server side scripting languages are HTML CSS Javascript
The server-side environment that runs a scripting language is a web server. A user's request is fulfilled by running a script directly on the web server to generate dynamic HTML/PHP/ASP pages. This pages are 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.
Server-side scripting is a technique of programming for producing the code which can run software on the server side, in simple words any scripting or programming that can run on the web server is known as server-side scripting. The operations like customization of a website, dynamic change in the website content, response generation to the user’s queries, accessing the database, and so on are performed at the server end.
The server-side scripting constructs a communication link between a server and a client (user) Example : Some server side scripting languages are PHP Python etc.
Advantages of Client-Side and Server-Side scripting