ASP (Active Server Pages) is a server-side scripting technology developed by Microsoft that enables the creation of dynamic and interactive web pages. ASP runs on the server and generates HTML, CSS, or JavaScript code that is sent to the browser.
ASP code is placed inside special tags: <% ... %>
. The server executes this code and sends the result to the client's browser.
<% Response.Write("Hello from ASP!") %>
Explanation: This script uses the built-in Response
object to output text to the browser.
ASP pages have the extension .asp
. These pages are processed on the server before being sent to the user.
You can freely combine HTML and ASP code in one file:
<html> <body>
Welcome
The current time is: <% =Now() %>