HTML1 HTML include / import 하는 방법 자바스크립트 AJAX를 이용한 방법- html에 다른 html Snippet 포함하기1. 분리하고자 하는 html 을 각각 분리하여 .html 파일 형식으로 저장한다.ex) header.html, footer.htmlhttps://www.w3schools.com/howto/howto_html_include.asp 2. html 파일 내 include 포함한다.index.html 파일 내 // index.html body> div data-include-path="./layout/header.html">div> div data-include-path="./layout/footer.html">div> body> 3. include.js 파일을 생성한다. .. 2024. 6. 30. 이전 1 다음