Skip to content Skip to sidebar Skip to footer

Is There That I Can Continue My Html Code In Another Page, While Being In The Main Code?

Is there that I can continue my HTML code in another page, while being in the main code? For example, in HTML you can make 1000 extra pages of JS and just use something like

Solution 1:

If you rename your file to filename.php, you can use an include function. The code should look like this:

<?phpinclude'header.html';

?>

You should probably put the files on the body. Just a warning: PHP is hard to learn at first, especially because you have to host a server and do many other things. To learn more about the subject, visit these sites:

W3schools PHP tutorial

XXAMP

Solution 2:

Use jQuery .load()

$('#idofDiv').load('file.html');

Post a Comment for "Is There That I Can Continue My Html Code In Another Page, While Being In The Main Code?"