A heading, a style and a script
You enter
- Html
- <h1 id="t">Hello</h1><p id="o">waiting</p>
- Css
- h1{color:crimson}
- Javascript
- document.getElementById("o").textContent="JS ran"
You get
- Preview
- A crimson Hello heading, and the second line reads JS ran instead of waiting
The CSS colors the heading crimson and the script replaces the text of the second line. This was run in the live page and the preview showed both changes.
Run through the tool’s own code.