- Keep values inside a variable. If you ask for a job title to be entered in a form field, it can store the name in a variable called “job title”
- Do operations on text pieces, which is referred to as strings. So if you have a string called “Name:” it’s possible to ad a variable to the string and thereby create a text label; “Name: Jake”.
- It’s also possible to execute code when an event occurs on the website. This could be a click on a “Add to cart” button. When the button is clicked, it will perform an action where the product is added to the cart and updates an icon on the cart, that tells how many products are now in the cart.
Client-side vs server-side scripts:
The main difference between client-side and server-side scripts is that client-side scripts are executed by your web browser while server-side scripts are executed by the server where the website or solution is hosted. This means that client-side scripts can be run without interacting with the server, while server-side scripts must be run on the server.
Client-side scripting is used to add interactivity to web pages. For example, you can use client-side scripts to create drop-down menus or form validation.
Server-side scripting is used to create web applications and dynamic websites. For example, you can use server-side scripts to connect to databases and retrieve data.
- Web Applications:
- Web Development:
- Mobile Applications:
- Server Applications:
- Web Servers:
- HTML (Hypertext Markup Language) is responsible for the web page structure. It defines the content of the page and how it should be displayed.
- CSS (Cascading Style Sheets) is responsible for the style of the web page. It defines the look and feel of the page, including the layout, color, and font.
These three languages are used together to create dynamic and interactive web pages.