Opens in a new tab
3 4 5 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

What is Frontend

FrontendDefinition:

Frontend is the part of a website or application with which a person interacts directly. It includes the interface displayed on the screen and the code that responds to actions such as selecting a button, completing a form, navigating a menu or requesting information.

In a web application, much of the frontend runs in the browser and communicates with the backend to request or send data. Both belong to the same system, but they perform different functions.

What the frontend includes

The frontend combines content, presentation and behaviour. Its usual components include:

  • Structure: organizes headings, text, forms, links and other elements with HTML.
  • Presentation: defines colours, typography, spacing, sizes and layout with CSS.
  • Interaction: uses JavaScript to respond to events, update the interface and execute client-side logic.
  • Assets: includes images, icons, fonts, video and other files needed to display the interface.
  • Interface state: stores temporary information such as a selection, the contents of a basket or the current step in a process.

The frontend is not limited to appearance. It also determines how the interface behaves, which information the user receives and how their actions are communicated to the rest of the application.

How a web application frontend works

The process depends on the architecture, but a typical interaction follows these stages:

  1. Initial request: the browser requests a document or opens an application.
  2. Resource loading: it receives HTML, style sheets, scripts, fonts and images.
  3. Interface construction: it interprets those resources and generates the visible elements with which the user can interact.
  4. Client-side execution: the code responds to events, validates particular inputs and updates parts of the screen.
  5. Data exchange: when external information is needed, it communicates with a service through an API.
  6. View update: it presents the returned data or reports the result of the action.

Not all logic belongs in the frontend. Sensitive operations, database access and rules that must not depend on the user’s device are normally executed on the server.

Frontend technologies and tools

The core technologies of the web are HTML, CSS and JavaScript. Other tools can be used on top of them:

  • Frameworks and libraries: help organize components, routes, state and reusable behaviour. A framework may also establish conventions and control part of the application’s flow.
  • Preprocessors and typed languages: extend or transform code before it is sent to the browser.
  • Build tools: bundle files, transform modules and prepare assets for deployment.
  • Package managers: install and maintain the dependencies used by the project.
  • Testing and development tools: automate checks and allow developers to inspect behaviour, network activity and performance in the browser.

These tools do not replace the foundations of the web platform. The browser ultimately interprets HTML, CSS, JavaScript and the assets generated by the development process.

Frontend and backend differences

Frontend and backend complement one another:

  • Interface: the frontend displays information and collects actions; the backend processes requests and provides services to the client.
  • Execution environment: a web frontend usually runs in the browser, while the backend runs on servers or remote services.
  • Data: the frontend presents and changes visible state; the backend applies rules, queries storage systems and returns results.
  • Exposure: code sent to the browser can be inspected; credentials and critical operations must not be entrusted to the client.
  • Communication: both exchange data through requests, responses and contracts defined by the application.

The boundary is not always identical. Rendering may occur on the server, in the browser or through a hybrid approach, and the same person may work across both layers.

Frontend interface quality

A frontend must work correctly as well as present a design. Its quality areas include:

  • Usability: actions and navigation should be understandable to the intended users.
  • Web accessibility: structure, keyboard operation, contrast and text alternatives should support people with different abilities and assistive technologies.
  • Responsive design: the interface should adapt to different screen sizes and methods of interaction.
  • Performance: asset weight, script execution and rendering affect loading time and page responsiveness.
  • Compatibility and resilience: the application should handle browser differences, slow connections, errors and incomplete responses.

Security also affects the frontend. Code should treat received data as untrusted, avoid inserting uncontrolled content and work with server protections against attacks such as unauthorized script execution.

What a frontend developer does

Frontend work may include:

  • Turning designs into functional interfaces with maintainable components and styles.
  • Programming interactions and managing the application’s visible state.
  • Integrating services and presenting data returned by the backend.
  • Testing the interface across browsers, devices and usage conditions.
  • Measuring and improving performance, accessibility and visual stability.
  • Collaborating with design, content, backend, analytics and quality assurance.

The scope varies by project. One person may cover several layers in a small team, while complex products tend to have more specialized responsibilities.