XML - HTML
An HTML document is an XML document with HTML tags.HTML rules and XML ones differ on the end of elements, but the Scriptol compiler manages that.
Example of HTML light document. The HTML page is generated for the web by the dom command to save as a file.
include "libdom.sol" XML HTML head style type="text/css" media="screen" /style /head body bgcolor="#ffff99" table bordercolor="#000000" border="2" width="400" height="200", align="center" cellspacing="0" tr td center "HELLO" / /td /tr /table /body /HTML /XML dom mypage mypage.build() mypage.save("mypage.HTML") |
Exercises |
1) See at the XML document XML above. Replace the
sentence "Hello" by "Hello world!". The document is in the xHTML.sol file. Save it as xHTML2.sol first. Answer |