Which of the following is primarily used for server-side scripting in web applications?
Options
- A. PHP
- B. HTML
- C. CSS
- D. More than one of the above
- E. None of the above
Quiz Practice:
A. PHP
Correct Answer: PHP
PHP is a server-side scripting language widely used for developing dynamic web applications.
When a browser sends a request to a PHP-based web server, the PHP code is processed on the server. The server then sends the generated result, usually HTML, back to the browser.
HTML and CSS are different: HTML defines the structure of a web page, while CSS controls its appearance.
Exam point: PHP code executes on the server, not directly in the user's browser.