Créez les deux fichiers suivants:
hello-dom.html
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>hello-dom</title> <script src="hello-dom.js"></script> </head> <body><!---------------------><h1 id="titre">Hello DOM world !</h1><!---------------------> </body></html>
hello-dom.js
console.log("Ce programme JS vient d'être chargé");