Create simple HTML content

This builds on the following intros:

Steps

Script

Let’s create a content file that displays some HTML code.

In the IDE, create a new file, and put it in the right column.

Mark it as an app, and create .Inline file in it for rendering the file within the page.

Set its type to html-1 for writing HTML code, and its body to hello world.

<b>Hello world!</b>

Let’s open it. There you go.

Adding a stylesheet works just like with other contents. Use a dash-prefixed class in your HTML,

<div class="-div">
    Hello world!
</div>

and the equivalent in your .InlineStyle file.

.-div {
    color: red;
}

That’s it.