+ 1
how to use php in HTML5
4 odpowiedzi
+ 1
you can* do it in your html file or external and link it to your html checkout sololearns php course :)
+ 1
use as external file and link it into your HTML page. or you may use it in your HTML file (page).
+ 1
<?php
.....
?>
0
the beauty of php is you can literally cut sections of html out of the document and save it in a php file. you can then just call it when you need it. for example a nav menu. instead of writing the same code on individual html files you simply call it. because you call the single code on all html files, when you update the nav menu in the php file it updates all pages at once... this is great and much easier. to explain this better. look at this link. http://www.w3schools.com/php/php_includes.asp