Who needs HTML to build a webpage, when you have JavaScript! In this tutorial, I'll show you how you can use JS to build up the components of a webpage, with no more than 7 lines of HTML!
A fantastic guide on the document.createElement() function:
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
Full Code from this video can be found here:
https://codepen.io/AndyMilneDotIO/pen/WNMgNGM
Follow me online for more coding content:
Website: http://andymilne.io/
Twitter: https://twitter.com/Andy_Milne_Io
CodePen: https://codepen.io/andy-milne-io
GitHub: https://github.com/andy-milne-io
Download
0 formats
No download links available.
Build a WebPage without HTML! JavaScript Tutorial | NatokHD