Try to never have any duplicated code in your site.
If you have a header on 2 pages, then make it an include.
If your selected page needs to be highlighted, then add that code in the included header.
Do this until you learn more PHP and get some experience with websites.
After you make a few sites, you will notice the need for front controllers (chances are so far your using page controllers).