Front-end and back-end refer to the division of labor in website construction. The reason why they are divided into front-end and back-end is because website construction requires different people to work together. They are mainly divided into front-end and back-end. , let’s talk about what front-end and back-end are.
1. Website front-end
The website front-end is the page design or static web design of the website. Simply put, the content and layout style of all pages we see when we visit a website are It belongs to the front-end of the website. The work of the front-end of the website is to design the static pages of the website. The so-called static page means the front-end of the website does not include the back-end. To give a simple example, a static page is like a newspaper with text, pictures and content, arranged side by side. , it is called static because the content cannot be changed dynamically, that is, the static page that everyone sees is exactly the same, without any difference. This is because this page is static and will not change. In short, the website front-end refers to the static page design of the website. The website front-end work uses HTML, css, js and other technologies to design the style and layout of the website page. This is the website front-end.
2. Website backend
The website backend is also called website backend technology or dynamic website technology. We also mentioned above that the disadvantage of static pages is that they cannot dynamically change the content and implementation on the page. Some code logic, for example, we need to implement user registration and login verification, or shopping settlement, etc. These are all implemented by code logic. We also need a background to add some news, news notifications, etc. to our web page, because not everyone Website users all know front-end technology to change page content, and this is too inconvenient, so the website backend is needed to implement these functions. These things require website backend technology to implement. Common website back-end development languages include asp, asp.net, jsp, php, etc. At the same time, website backend technology also includes databases such as MySQL, sqlserver, etc. Databases are used to store backend data.
Why are we divided into front-end and back-end
Now everyone understands that the work of the front-end and back-end of the website are completely different. The front-end job is to design static pages, and the back-end is to implement some code in conjunction with the database. Logic such as verifying user login, etc., the background is more focused on logical thinking. In short, the website is only divided into front-end and back-end to enable different people to do different things. The front-end professionals do the front-end and the back-end professionals do the back-end. In this way, the division of labor does not require one person who understands both front-end and back-end technologies.
The above is the detailed content of What does front-end and back-end mean? What's the difference?. For more information, please follow other related articles on the PHP Chinese website!