[plt-scheme] html in servlets
Zhu Chongkai wrote:
1. Example
> <table>
> <tr><th>Food</th><th>Drink</th><th>Sweet</th>
An </tr> is missing at the end.
> <tr><td>A</td><td>B</td><td>C</td>
> </table>
2. Example (worked)
> <table>
> <tr><th>Food</th><th>Drink</th><th>Sweet</th></tr>
> <tr><td>A</td><td>B</td><td>C</td></tr>
> </table>
3. Example
> <table border>
The proper syntax is <table border="1!>.
> <tr><th>Food</th><th>Drink</th><th>Sweet</th></tr>
> <tr><td>A</td><td>B</td><td>C</td></tr>
> </table>
The "problem" is that DrScheme only allows wellformed
HTML-expressions. This forces you to write proper
HTML. When a browser sees an HTML-expression with
errors it guesses, what was meant. Different browsers
guess differently, so if you write non-proper HTML,
you'll experience that your pages only look good
in one browser.
--
Jens Axel Søgaard