+ 1
How to add pages to my HTML code?
When I googled, all I get is to link another HTML file to the main one. May be its fine but it's difficult to update the all files when I need to only change the style of the header, title etc.
4 Respuestas
+ 3
+ 3
For templating, you could use Jade to include other jade files for common header or footer sections.
Use Jade maxins to build common blocks for components or sections reuse.
+ 2
You can use JavaScript XML requests, JavaScript to create elements, the PHP include command, or perhaps node.js, to build and load a website's constant elements.
+ 2
To change a style of header or title easily, you could use external style sheet.