Including Tibbo BASIC Code in HTTP Files

To create dynamic HTML pages, you include Tibbo BASIC/C statements directly into the HTML file. A fragment of Tibbo BASIC/C code is included within "<? ?>" encapsulation, as shown in the example below (for more information, see Working With HTML):

Tibbo BASIC
<!DOCTYPE HTML public "-//W3C//DTD W3 HTML//EN">
<HTML>
<BODY>
	HELLO HTML WORLD!<br>
	<?
		'This is a BASIC code snippet. We can, for instance, send something to the serial port
		ser.num=0
		ser.setdata("HELLO SERIAL WORLD TOO!")
		ser.send
	?>
</BODY>
</HTML>

Each time this HTML page will be requested by the browser, the "HELLO SERIAL WORLD TOO!" string will be sent out of the serial port.