Difference between css html and php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Difference between css html and php

php css difference

26th Oct 2016, 12:46 PM
David Kariuki
David Kariuki - avatar
4 Answers
+ 10
The Difference Between CSS, HTML and PHP CSS = Style: Cascading Style Sheets (CSS) dictate your website’s look and feel. Font size, font color, font type, styling around images, page layout, mouse-over effects and more are all determined by CSS. In WordPress, CSS can be edited within the “Editor” section under Appearance in the Dashboard. Some WordPress themes, like Headway, allow you to visually edit the CSS (meaning you don’t need to get eyeball headaches from coding). The colors, fonts and styles of this entire website are driven by CSS. HTML = Content: HyperText Markup Language (HTML) is the building-blocks of web pages. HTML allows you to put images, text, videos, forms and other pieces of content together into a cohesive webpage. You can also tweak text words, resize images, and add links to either. Anything that you can read or view on this website is being presented to you (by way of a browser) with HTML. PHP = Functionality: Originally meaning “Personal Home Page“, PHP is what makes your website do stuff (I really can’t say it any better than that). It’s a language of web applications like WordPress plugins, Donation widgets and other things that do stuff. If you use the search box at the top of the screen, PHP will perform the functions that need to be done to give you the search results.
26th Oct 2016, 12:48 PM
David Kariuki
David Kariuki - avatar
+ 3
HTML is used to construct the page (header, footer, images, menu ..) CSS is used to decorate the HTML pages (change header background color, change the font size of the menu, resize the images ...) PHP is used to add functualities (get today's date, insert and gather data to/from database, creating and modifying files, and many more)
2nd Nov 2016, 3:03 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
+ 1
You should keep in mind the following mapping: Front end (i.e. what the user sees) HTML -> Web Page Content CSS -> Web Page Style JavaScript -> Web Page Behaviour Back end (i.e. what the server does) PhP (or Python, Java etc.) -> Server Behaviour
18th Nov 2016, 12:21 AM
Miltiadis Siavvas
+ 1
css and html is a part of front-end and php is a backend.
22nd Nov 2016, 9:58 PM
Masoud Jahromi
Masoud Jahromi - avatar