+ 1

how to use php in HTML5

16th Jun 2016, 10:15 PM
alikh
alikh - avatar
4 odpowiedzi
+ 1
you can* do it in your html file or external and link it to your html checkout sololearns php course :)
16th Jun 2016, 11:18 PM
Matt
+ 1
use as external file and link it into your HTML page. or you may use it in your HTML file (page).
17th Jun 2016, 12:14 PM
tarun prasad
tarun prasad - avatar
+ 1
<?php ..... ?>
17th Jun 2016, 9:42 PM
alikh
alikh - avatar
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
18th Jun 2016, 3:17 AM
Trikyas.com
Trikyas.com - avatar