Super Micro Tutorial
Learn Something In 2 Minutes or Less!
Oct 12th, 2017
document.write('\ <div id="header">\ <center>\ <a href="/"><img src="/assets/Logo.png" alt="Super Micro Fun"></a>\ </center>\ </div>\ );
<body> <script src="/header.js"></script> </body>
Step 3: That's it! You did it, bud! Now you've got a single place to put shared HTML and there's no need to duplicate anything :)
Note - I'm able to get away with this because my header and footer are ridiculously simple. Something more complex might get pretty ugly!