Every topic starts at New. Sign in and your practice counts.
Every website you open has a visible part you tap and a hidden part that stores data. This topic shows how the two parts divide the work and how a plan becomes a launched site.
This topic teaches how websites move from plan to launch, how front-end and back-end divide the work, and how requests, responsive layouts and a store example bring them together.
Think of an online shop that looks neat on a phone and still remembers prices and stock. To understand it, start with the two sides of every website and the path from an early plan to launch.
The front-end is everything you see and interact with on a website, such as buttons and images. It is built to be user-friendly, and front-end developers make it attractive and easy to use. They work with HTML, CSS and JavaScript, and this side is also called client-side.
The back-end holds the data and shows it on demand. Because that data generally lives on a server, this side is also called server-side. Back-end developers keep everything working behind the website, especially the data management that visitors cannot see. They use a variety of coding languages, such as Ruby, Python and PHP.
Teams keep the two sides apart because building and maintaining a website becomes easier. The split also lets people focus on what they do best, since front-end and back-end developers work independently. Front-end developers concentrate on an attractive and user-friendly appearance, while back-end developers handle databases and server logic.
| Aspect | Front-end | Back-end |
|---|---|---|
| Where it runs | On the client that you use | On the server that stores data |
| What you notice | Buttons, images and layout | Data handling you cannot see |
| Main work | Attractive and user-friendly pages with HTML, CSS and JavaScript | Databases and server logic with languages such as Ruby, Python and PHP |
A website starts with a plan and ends with a launch that everyone can reach:
When you act on a page, the front-end sends a request to the back-end. The back-end processes the request, works with the database and builds dynamic content.
An online store shows why both sides are needed. The shop that visitors use is built with HTML, CSS and JavaScript so items can be viewed and purchased. Item details, cost and stock live in a database on the back-end. When a customer places an order, the front-end sends the order information to the back-end, which checks the data, updates the database and manages the stock. The same store must also fit many screens. Responsive design lets the layout and function adjust for desktop computers, tablets and mobile phones. Older one-size-fits-all designs looked awkward on smaller devices. Responsive layouts use adaptable designs where items are sized in proportion to the screen with percentages rather than fixed pixel values, so a desktop menu can become a stacked menu on a mobile device.