Hi Web Developers! back again with the tech teacher. This time the design teacher will share a JavaScript programming tutorial, namely creating HTML with pure JavaScript.If something goes wrong, please correct it, and for new programmers, let's follow the material. As we know JavaScript and HTML are like close friends who perfect each other, it's just that JavaScript can act more like what we will discuss today, namely, Create HTML with Pure JavaScript ok.
continue to the tutorial, here's the application
If you want to create the HTML body using JavaScript but in an HTML file, you can add the JavaScript code in a separate file and include it in your HTML file using the script tag.
First, create a new file called script.js and add the following code: