what is the difference b/w php & html code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is the difference b/w php & html code ?

instead of tags

29th Jul 2020, 10:24 AM
Tanisha Biswas
Tanisha Biswas - avatar
6 Answers
+ 3
HTML is frontended while PHP is a backended programing language.
29th Jul 2020, 10:27 AM
Rawley
Rawley - avatar
+ 3
html is used to make web pages and its a markup language and php is a programming language
28th Sep 2020, 2:00 AM
KashishAggarwal
KashishAggarwal - avatar
+ 2
HTML is used to develop static web pages whereas PHP is used to develop components which make website dynamic. The output ofPHP script is HTML as they will be similar toHTML files which can include both HTML and PHP in script code but for the end user while opening PHPweb page be able to access only HTML elements.
29th Jul 2020, 10:29 AM
Lexi Rockelle Smith
Lexi Rockelle Smith - avatar
+ 2
is there any online compiler for php ?
29th Jul 2020, 10:30 AM
Tanisha Biswas
Tanisha Biswas - avatar
+ 2
I'm not sure but maybe this can help https://www.w3schools.com/php/php_compiler.asp
29th Jul 2020, 10:32 AM
Lexi Rockelle Smith
Lexi Rockelle Smith - avatar
+ 1
Tanisha Biswas the main difference is HTML does not need a server to run but PHP is need to run server. php is programming language whereas HTML is a markup language. You can write html in php files but you can not write php in html files.
29th Jul 2020, 10:51 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar