This section will get you started with displaying text and HTML on your app's page.
Here's the famous "Hello World" example:
To print multiple lines of text, a quick way is
printp, meaning "print paragraph."
By default, the print command makes your text "html-safe", so it
shows up the way it looks in your code. That's why the open
angle-bracket above in 4 + 2 < 7 didn't wipe out the
rest of the document!
Here's a way to print raw HTML code, using the raw
function and multi-line strings (an AppJet extension to
JavaScript).
A better way to print HTML (we think) is to use our "tags" library.
The tags library has a function for each HTML tag.
As the above example shows, you can set the attributes of a tag (like color) by passing a JavaScript object as the first argument.
You can also treat a tag like a JavaScript array (it has all the same methods) and add to it programmatically.