ASP ClassicLesson 28Free preview
ASP Syntax
This lesson is part of ASP · All levels
Summary
Classic ASP syntax separates server code and HTML with <% %> blocks placed between the page tags. The <%= %> mark is an abbreviation for printing value, whereas comments in scripts use single quotes. Because logic and display are mixed in one file, a neat block layout is very much a determinant of page readability.
Key points
- The server code block opens with <% and closes with %>.
- <%= expression %> displays value without writing Response.Write.
- VBScript comments use single quotes along the row.
- HTML and server code may be mixed into one file. (.asp)
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.