docs: intro: valid HTML snippet (#1574)
Declaring scripts after the closing body tag looks like a typo
This commit is contained in:
parent
dba5ee7d98
commit
c8ed22fb08
1 changed files with 7 additions and 6 deletions
|
|
@ -53,13 +53,14 @@ The easiest way to try out Mithril is to include it from a CDN, and follow this
|
|||
Let's create an HTML file to follow along:
|
||||
|
||||
```markup
|
||||
<body></body>
|
||||
<script src="http://unpkg.com/mithril/mithril.js"></script>
|
||||
<script>
|
||||
var root = document.body
|
||||
<body>
|
||||
<script src="http://unpkg.com/mithril/mithril.js"></script>
|
||||
<script>
|
||||
var root = document.body
|
||||
|
||||
// your code goes here!
|
||||
</script>
|
||||
// your code goes here!
|
||||
</script>
|
||||
</body>
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue