Can php be a substitute for html,css and js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can php be a substitute for html,css and js?

24th Jan 2020, 6:58 PM
Daniel Melo
Daniel Melo - avatar
3 Answers
+ 4
php is server-side programming language, which by that php files are run on server. HTML, css, js are client-side languges (frontend) used to mostly display stuff on your site. So php cant display content without html and css. But website can work with only html and css.
24th Jan 2020, 7:07 PM
Amar
Amar - avatar
+ 5
Simply, the answer is impossible. HTML is obviously necessary, so is CSS and JavaScript. But, PHP cannot replace the importance of JavaScript because JavaScript is becoming popular in app and game development. Again JS is client-side programming language
24th Jan 2020, 7:04 PM
NightFox
NightFox - avatar
+ 5
Not without billions of dollars worth of changes to web standards, browsers and web servers.
24th Jan 2020, 7:42 PM
Sonic
Sonic - avatar