A heading, a style and a script
Du skriver inn
- HTML
- <h1 id="t">Hello</h1><p id="o">waiting</p>
- CSS
- h1{color:crimson}
- JavaScript
- alert("hi")
Du får
- Forhåndsvisning
- En karmosinrød overskrift med teksten «Hello», og den andre linjen viser «JS ran» i stedet for «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.
Kjørt med verktøyets egen kode.