How do I... HTML/CSS and javascript people please.?

Nelle

New member
So I'm designing and coding a website that has several pages. When I am updating the navigation, header, or footer I would like the changes to appear on all the web pages so I don't have to manually update every page.

How do I call the html/css of the header and navigation from a different file?
 
I did this once using php, essentially just use:
<?php include 'file.php'; ?>
Put the navigation HTML/CSS in 'file.php'.

Try that, you might have to fiddle around a bit...
 
I did this once using php, essentially just use:
<?php include 'file.php'; ?>
Put the navigation HTML/CSS in 'file.php'.

Try that, you might have to fiddle around a bit...
 
Back
Top