The Hello world example as below,
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>dojo toolkit hello world example</title> <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js" data-dojo-config="async: true"></script> </head> <body> <h1 id="selectorId">Hello</h1> <script> require(['dojo/dom', 'dojo/dom-construct'], function(dom, dom_Construct) { var node = dom.byId('selectorId'); dom_Construct.place('<span> Anil Singh!</span>', node); }); </script> </body> </html>
The output look like,