Home  >  Article  >  Backend Development  >  Are php and css the same?

Are php and css the same?

(*-*)浩
(*-*)浩Original
2019-05-11 11:42:334128browse

php and css are different. CSS is used as the presentation layer of web pages. It can precisely control the layout of elements in web pages at the pixel level, and has the ability to edit web page objects and model styles. PHP is used to handle the logic layer, that is, what functions you want the web page to provide and what actions you want to complete; such as querying data, calculating interest, generating charts, etc.

Are php and css the same?

##CSS

Cascading Style Sheets (English full name: Cascading Style Sheets) is a style used to represent HTML ( A file-style computer language such as Standard Generalized Markup Language (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language). CSS can not only statically modify web pages, but can also cooperate with various scripting languages ​​to dynamically format various elements of web pages.

CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles.

PHP

Foreign name: PHP: Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor", is a general open source scripting language. The syntax absorbs the characteristics of C language, Java and Perl, which is easy to learn and widely used. It is mainly suitable for the field of Web development.

PHP's unique syntax mixes C, Java, Perl and PHP's own syntax. It can execute dynamic web pages faster than CGI or Perl.

Compared with other programming languages, dynamic pages made with PHP embed the program into the HTML (an application under the standard universal markup language) document for execution, and the execution efficiency is higher than that of completely generating HTML tags. CGI is much higher; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster.

The above is the detailed content of Are php and css the same?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn