dojo Hello World


Create an HTML file like below. In the script tag, either you can use CDN link or from your local like

<script type="text/javascript" src="dojo/dojo/dojo.js"

<!DOCTYPE html>
    <meta charset="utf-8">
    <title>Tutorial: Hello Dojo!</title>
    <h1 id="greeting">Hello</h1>
    <!-- load Dojo -->
    <script src="//"
            data-dojo-config="async: true"></script>

That's it. When you run this HTML, you should see Hello. Yes, we are yet to use any Dojo specific code in this example. But this shows how you can create a simple page using Dojo. Next, we will see how we can apply Dojo to this simple page.