Monday, August 6, 2012

Difference between CSS & PHP

CSS & PHP both use for web development..

CSS - cascading style sheets are used for styling an (x)html web page
PHP - PHP Hypertext Preprocessor (or Personal Home Page as originally designated) is a server side processing language.

First of all let us see what is CSS?

  • CSS determined by Font size , font type, font color , font shape ,borders & styling around images , page layout, mouse – over effects and more ..
  • CSS manages & expresses how HTML elements are to be displayed.

  • Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file.
  • The colors, fonts and styles of this entire website are driven by Using CSS.

What is PHP?

  • PHP is original meaning “Personal Home Page”, PHP can make the webpage do mess.
  • To describe what a PHP page is, you could say that it is a file with the extension .php that contains a combination of HTML tags and scripts that run on a web server.
  • In an HTML document, PHP script (similar syntax to that of Perl or C ) is enclosed within special PHP tags. 
Finally I can explain this by using simple  example.
If we get a Plane for an example, 
CSS provides the style ,shape , general look and feel, nice air plane .
PHP makes a website do stuff, like a plane engine and rpm...


1 comment:

  1. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.
    Regards,
    PHP Institutes in Chennai|PHP Training Center in Chennai

    ReplyDelete