Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to make common header and footer in html

<html>
<head>
<title></title>
<script
    src="https://code.jquery.com/jquery-3.3.1.js"
    integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
    crossorigin="anonymous">
</script>
<script> 
$(function(){
  $("#header").load("header.html"); 
  $("#footer").load("footer.html"); 
});
</script> 
</head>
<body>
<div id="header"></div>
<!--Remaining section-->
<div id="footer"></div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: use jquery variable in html 
Html :: onchange for contenteditable div 
Html :: vue-date-pick 
Html :: data-slide-to dynamic angular 
Html :: js cannot set property of null 
Html :: how do i link back out a folder using th a-href tag 
Html :: html <div 
Html :: html audio tag 
Html :: shoppy embed 
Html :: divs html 
Html :: html picture tag 
Html :: flip an image js 
Html :: <marquee</marquee tag 
Html :: tabpage in boostrap5 
Html :: html-search-bar 
Html :: class html 
Html :: best free html video player 
Html :: html input attributes 
Html :: text box 
Html :: html boilerplate 
Html :: set placeholder text 
Html :: search button inside search box 
Html :: drag and drop angular 
Html :: table bootstrap 4 
Html :: how to run an html file 
Html :: how to hyperlink in html 
Html :: open .html file in webbrowser c# 
Html :: boostrap grid 
Html :: bootstrap notifications 
Html :: host github pages with index index.html in folder 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =