HTML

HTML (HyperText Markup Language) is the language in which web pages are coded. The HTML unit of RFO-BASIC! lets a BASIC program present a web-page interface to the user. The BASIC program can obtain or generate HTML code in a string variable and have it treated as a web page, or can specify the address (URL) of a page on the web for display to the user.

However the HTML code is obtained, the web page is displayed under the control of the default browser the user has chosen. However, the BASIC program is in control of every operation, such as following a hyperlink to a new page. The BASIC program is free to modify the web page before presenting it to the user. If the web page includes certain JavaScript code, it can send a message (a datalink) to the BASIC program.

The program  included in the RFO-BASIC! distribution is an example of a program that manages display of web pages. Two sample web pages used in this example,  and , are placed in BASIC's   directory during installation. It is instructive to read the code of this sample program, try it, and understand how the code produces the effects.
 * Examples

The program  included in the RFO-BASIC! distribution is a convenient text editor for the two demonstration web pages, or for other local web pages you may write.

Displaying HTML
HTML code can be obtained from a string variable inside the BASIC program using HTML.LOAD.STRING, or from the web using HTML.LOAD.URL.