In our ASP tutorial, every example shows the hidden ASP source code. This will make it easier for you to understand how it works.
An ASP file normally contains HTML tags, just like an HTML file. However, an ASP file can also contain server scripts, surrounded by the delimiters <% and %>.
Server scripts are executed on the server, and can contain any expressions, statements, procedures, or operators valid for the scripting language you prefer to use.
The response.write command is used to write output to a browser. The following example sends the text "Hello World" to the browser:
There is also a shorthand method for the response.write command. The following example also sends the text "Hello World" to the browser:
You can use several scripting languages in ASP. However, the default scripting language is VBScript:
The example above writes "Hello World!" into the body of the document.
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.