In an HTML template file, a token is a block of text to be replaced when the Web server processes the page before sending it to the browser. You surround a replacement area with special characters called tokens that tell the Web server what part of the document to replace. Code or script indicates how the server should replace the value.