If I want to resuse a part of the HTML along with the associated css, whats the best way to do this?
User a server-side language like PHP to generate the HTML.
You may want to create a sort of template right? you may have to use a server-side language like PHP to do it.
You may need to create some files like: header.php, body.php and footer.php
and an index.php file would work like this:
<?php
require "header.php";
require "body.php";
require "footer.php";
¿>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With