備忘録として。 SSIやPHPなどを使わずに、HTMLで他のファイルをインクルードする方法。 JavaScript の Ajax を使って、HTML ファイルの読み込みと挿入を動的に行う。 ≪ 例 ≫ <div id="header"></div> <script> fetch('header.html') .then(response => response.text()) .then(html => document.getElementById('header').innerHTML = html); </script> ※ インクル…