Can I use just php to create websites, or I must use html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can I use just php to create websites, or I must use html?

please explain to me the diffrence between html and php,is php a complement to html or i can just create a website with php without having to use html?

30th Jan 2017, 2:43 PM
Haroun ben
Haroun ben - avatar
12 Answers
+ 9
PHP works like a Bridge between Front End (Web Pages You See) and the Back End (Typically a DataBase). You Have to Design Front End Through HTML Css JS.
30th Jan 2017, 2:49 PM
Arpan Lunawat
Arpan Lunawat - avatar
+ 8
PHP is a scripting language, HTML is a markup language. If you wanted to make a website with only PHP, you wouldn't really have a website. Main point: You need HTML, CSS, and JavaScript.
30th Jan 2017, 2:45 PM
Caleb Jore
Caleb Jore - avatar
+ 5
thanks for the question and these answers, learnt a lot
2nd Feb 2017, 5:47 PM
Antoinette Apondi
Antoinette Apondi - avatar
+ 4
I think HTML is the primary language for creating a website not PHP
31st Jan 2017, 11:52 AM
keivan Ipchi
keivan Ipchi - avatar
+ 3
For the server side programming, you need php. But for the client side you have to use html.
31st Jan 2017, 3:59 PM
mohsen chavoshi
mohsen chavoshi - avatar
+ 3
no @kibrom Its a Server Side Scripting Language. We can NEVER say its A Web Server. A Web Server is Where you Keep all you Files, and Browser Request files from web server.
31st Jan 2017, 8:49 PM
Arpan Lunawat
Arpan Lunawat - avatar
+ 1
ahh ok ,that's exactly what i needed to know,thanks a lot.
30th Jan 2017, 2:48 PM
Haroun ben
Haroun ben - avatar
+ 1
PHP is what works within a webserver to deliver HTML-formatted content to your web-browser. The content seen as a web-page in the browser. HTML is mandatory but PHP might be replaced with another server-side script engine such as Python (you would heard about Django) or JavaScript (Node.js).
31st Jan 2017, 10:12 PM
Сергей Сарбаш
Сергей Сарбаш - avatar
0
HTML is the spine of all websites , or of internet itself and php is just a language which defines that spine ways of work to let the website be interatctive.
31st Jan 2017, 12:10 PM
Oussama Jaaouani
Oussama Jaaouani - avatar
0
PhP and HTML is NOT the same thing. PhP communicates with databases for example. HTML is the structure of the website. It's like comparing the structure of a house and the Internet cord.
31st Jan 2017, 1:14 PM
Oscar
Oscar - avatar
0
I think it would be best if you used php the way it was meant to be used. Use HTML to create the content of the website, CSS for the style of the website, javascript to make it more interactive. Then if you want to implement a database use SQL and use PHP to connect that database with your website. I guess you could use php for other things as well, but dividing your problems is going to make your life easier and your code easier to read and maintain
31st Jan 2017, 9:39 PM
Fotis Aronis
Fotis Aronis - avatar
- 1
php is a web server
31st Jan 2017, 8:47 PM
Kibrom Tsegay
Kibrom Tsegay - avatar