✦ include 사용
✧-- HTML
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$("#header").load("include/header.html");
$("#footer").load("include/footer.html");
});
</script>
<div id="header"><!-- 여기추가됨 --></div>
<div id="footer"><!-- 여기추가됨 --></div>
✧-- PHP
✧-- //상대경로
<? include("../include/header.php");?>
✧-- //절대경로
<?php include("../include/header.php");?>
✧-- ASP
✧-- //상대경로
<!-- #include file="../include/header.asp"-->
✧-- //절대경로
<!-- #include virtual="/include/header.asp"-->
✧-- JSP
<%@ include file="../include/header.jsp" %
<jsp:include page="../include/header.jsp" flush="true" />