An HTML file can contain HTML tags, text and scripts.
Server-side scripting is about "programming" the behavior of the server. This is called server-side scripting or server scripting.
Client-side scripting is about "programming" the behavior of the browser. (see Web JavaScript chapter).
Normally, when a browser requests an HTML file, the server returns the file. However, if the file contains a server-side script, the script is executed on the server before the file is returned to the browser as plain HTML.
Important: Because the scripts are executed on the server, the browser that displays the file does not need to support scripting at all!
At W3Schools we demonstrate server-side scripting by using Active Server Pages (ASP) and Hypertext Preprocessor (PHP).
Write text with ASP
How to write text with ASP.
Add some HTML to the text
How to format the text with HTML tags.
Study our Complete ASP tutorial, or our Complete PHP tutorial.
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|