0

I have 5 html pages and all those pages have same header and footer

I need to reuse the header and footer in all the HTML pages

how effectively i can reuse them so as to avoid repititive codes?

Mahi
  • 53
  • 1
  • 2
  • 10

1 Answers1

1

You can do this with a php include. Put the html in a php file and save it eg. header.php

Then in your html you place a reference to the php file

<?php include ('includes/header.php'); ?>
WEB PERSON
  • 50
  • 5