HTML Various Examples
This example demonstrates how to generate HTML using various HTML vipers.
| Smartsite SXML |  Copy Code | 
|---|---|
| {html.span("Click the image", html.attribute(id, span))}
{html.span(
  html.link(
    html.location('http://mysite.com'), 
    html.image('image.png', 'image', 
      html.attributes(width, 100, height, 100))),
  html.style('foo', "background-color:blue"))} | |
| Example Result |  Copy Code | 
|---|---|
| <span id="span">Click the image</span> <span style="background-color:blue"><a href="http://mysite.com/"><img src="image.png" alt="image" width="100" height="100"/></a></span> | |