Swipe

Swipe

SwipeSwipe

Paths

Motivation

Information

Back to Coding
Coding · Learning Area

Web Development

Learn how modern websites and web applications are built. Explore the technologies, tools and workflows that power today's web—from HTML and CSS to React, APIs and deployment.

Web Development preview

Introduction

Every website you visit follows the same basic process. Whether you're opening Google, YouTube, Amazon or Swipe, your browser communicates with a server to request information. The server processes the request and sends the necessary files back to your device, allowing the browser to display the website.

Although this happens in just a few milliseconds, several technologies work together behind the scenes. Understanding how websites work helps you see the bigger picture of web development before learning HTML, CSS and JavaScript.

Why It Matters

Modern websites are much more than static pages. They allow users to sign in, watch videos, purchase products and interact with applications in real time. Understanding how the web works helps you understand where different technologies fit into the development process and why frontend and backend development are both important.

Key Principles

The Browser

A browser is the application you use to access websites.

Popular browsers include:

  • Google Chrome
  • Safari
  • Microsoft Edge
  • Mozilla Firefox
  • Opera

The browser downloads website files, interprets them and displays the finished webpage on your screen.

The Server

A server is a computer that stores websites and applications.

When someone visits a website, the server receives the request and sends the required files back to the browser.

Servers can provide:

  • HTML files
  • CSS files
  • JavaScript files
  • Images
  • Videos
  • Data from databases

Without servers, websites wouldn't be accessible on the internet.

The Request & Response Process

Every website follows the same communication process:

  • You enter a website address.
  • Your browser sends a request to the server.
  • The server processes the request.
  • The server sends a response containing the website files.
  • Your browser displays the webpage.

This process usually takes only a fraction of a second.

Frontend vs Backend

Modern websites are divided into two main parts.

Frontend — everything users can see and interact with, such as buttons, navigation, images, forms and animations. Frontend developers mainly work with HTML, CSS, JavaScript, TypeScript, React and Next.js.

Backend — works behind the scenes. It is responsible for processing requests, managing databases, authenticating users, handling payments and running business logic. Users never directly see the backend, but almost every modern website depends on it.

How Everything Works Together

A simple example: you open swipe.com → your browser sends a request → the server receives the request → the server sends back HTML, CSS, JavaScript and images → the browser combines these files and displays the finished website.

If you sign in or submit a form, additional requests are sent to the backend to process your information.

Visual Overview

User → Browser (sends a request) → Server (sends a response) → HTML + CSS + JavaScript → Website

Examples

This process happens every day when you:

  • Open YouTube.
  • Search on Google.
  • Shop online.
  • Read the news.
  • Sign in to an application.
  • Use social media.

Every modern website follows this same communication model.

Common Mistakes

  • Thinking websites are stored inside the browser.
  • Confusing the browser with the server.
  • Believing the frontend works without a backend.
  • Assuming websites consist of only one file instead of many different resources.

Exercises

  • Name three browsers you have used.
  • Explain the difference between a browser and a server.
  • Describe the request and response process in your own words.
  • Identify which parts of your favorite website belong to the frontend and which belong to the backend.

Summary

Every website is created through communication between a browser and a server. The browser requests information, the server responds with the necessary files and the browser renders the final webpage. Understanding this process provides the foundation for web development and makes it easier to learn HTML, CSS, JavaScript and modern web frameworks.

Resources

  • MDN Web Docs — Learn how browsers, HTML, CSS and JavaScript work.
  • HTTP Overview (MDN) — Understand how requests and responses work.
  • HTML Living Standard — Official HTML specification.
  • Google Chrome DevTools — Explore how websites load using your browser's developer tools.

Introduction

Every website starts with HTML. HTML, which stands for HyperText Markup Language, is the standard language used to create the structure and content of webpages. It tells the browser what elements should appear on the page, such as headings, paragraphs, images, buttons and links.

Think of HTML as the skeleton of a website. Without it, a webpage would have no structure or content. While HTML doesn't control how a website looks or behaves, it provides the foundation that CSS and JavaScript build upon.

Why It Matters

Every webpage on the internet uses HTML. Whether you're building a personal portfolio, an online store or a social media platform, HTML defines the layout and organizes the content. Learning HTML is the first step toward becoming a web developer.

Key Principles

HTML Elements

An HTML document is built from elements that describe different parts of a webpage, such as headings, paragraphs, images, buttons, links and lists.

Most HTML elements use an opening tag and a closing tag.

Example: <h1>Welcome to Swipe</h1>

The opening tag tells the browser where the element begins, and the closing tag tells it where the element ends.

Common HTML Elements

Some of the most frequently used elements include:

  • <h1> to <h6> — Headings
  • <p> — Paragraphs
  • <a> — Links
  • <img> — Images
  • <button> — Buttons
  • <div> — Groups content together
  • <ul> and <li> — Unordered lists
  • <form> — User input forms

These elements are the building blocks of every webpage.

HTML Document Structure

Every HTML page follows a basic structure: a <!DOCTYPE html> declaration, an <html> root element containing a <head> (with page metadata like the <title>) and a <body> (with the visible content, like headings and paragraphs).

The browser reads this document from top to bottom before displaying the webpage.

Semantic HTML

Modern websites use semantic HTML, which means choosing elements that describe their purpose instead of just their appearance.

Examples include:

  • <header>
  • <nav>
  • <main>
  • <section>
  • <article>
  • <footer>

Semantic HTML improves accessibility, search engine optimization (SEO) and makes code easier to understand.

HTML Across Modern Frameworks

Although modern frameworks use different syntax, they all generate HTML in the browser.

  • HTML — <h1>Hello</h1>
  • React — <h1>Hello</h1>
  • Next.js — <h1>Hello</h1>
  • Vue — <h1>Hello</h1>
  • Angular — <h1>Hello</h1>
  • Svelte — <h1>Hello</h1>

No matter which framework you use, the final result displayed by the browser is HTML.

Examples

HTML is used to create:

  • Website navigation.
  • Blog articles.
  • Product pages.
  • Contact forms.
  • Image galleries.
  • Landing pages.

Every visible piece of content on a webpage begins as HTML.

Common Mistakes

  • Thinking HTML is a programming language.
  • Using HTML to style a website instead of CSS.
  • Forgetting closing tags.
  • Ignoring semantic HTML elements.
  • Using too many unnecessary <div> elements.

Exercises

  • Explain what HTML stands for.
  • Name five common HTML elements.
  • Describe the difference between HTML and CSS.
  • Identify semantic elements on a website you visit.
  • Think about why every webpage needs HTML.

Summary

HTML is the foundation of every website. It provides the structure and content that browsers display, while CSS adds styling and JavaScript adds interactivity. By understanding HTML elements, document structure and semantic markup, you've learned the first building block of modern web development.

Resources

  • MDN Web Docs — HTML
  • HTML Living Standard (WHATWG)
  • W3Schools — HTML Tutorial
  • Google HTML Style Guide

Introduction

While HTML provides the structure of a webpage, CSS is responsible for its appearance. CSS, which stands for Cascading Style Sheets, controls how elements look by defining colors, fonts, spacing, layouts, animations and much more.

Without CSS, every website would appear as plain black text on a white background. CSS transforms simple HTML into modern, visually appealing and responsive websites that provide a better experience for users.

Why It Matters

Good design is about more than making a website look attractive. A well-designed interface improves readability, usability and accessibility, helping users find information quickly and interact with a website more easily. CSS gives developers complete control over how a webpage is presented across different devices.

Key Principles

Selectors

A selector tells CSS which HTML element should be styled.

Example: h1 { color: blue; }

In this example, every <h1> heading will appear blue.

Properties & Values

Every CSS rule consists of a property and a value.

Example: color: blue; · font-size: 32px; · margin: 20px;

Some of the most common properties include:

  • color
  • background-color
  • font-size
  • margin
  • padding
  • width
  • height
  • border

These properties define how an element should appear on the page.

The Box Model

Every HTML element is treated as a rectangular box.

The Box Model consists of four parts:

  • Content
  • Padding
  • Border
  • Margin

Understanding the Box Model is essential for creating clean layouts and controlling spacing between elements.

Layouts

Modern CSS provides powerful layout systems that make it easy to organize content. The two most common are:

  • Flexbox — ideal for arranging items in a row or column.
  • CSS Grid — ideal for building complex page layouts.

These tools allow developers to create responsive websites with much less code than in the past.

Responsive Design

People visit websites on phones, tablets, laptops and desktop computers. CSS allows websites to automatically adapt to different screen sizes using flexible layouts and media queries.

Responsive design ensures that a website looks good and functions properly on every device.

CSS Across Modern Frameworks

Although frameworks use different technologies, they all rely on CSS for styling. No matter which framework you choose, CSS remains the foundation of web design.

  • HTML & CSS — Traditional CSS files
  • React — CSS Modules, Tailwind CSS, Styled Components
  • Next.js — CSS Modules, Tailwind CSS
  • Vue — Scoped CSS
  • Angular — Component CSS
  • Svelte — Scoped CSS

Examples

CSS is used to:

  • Change colors and fonts.
  • Add spacing between elements.
  • Create navigation bars.
  • Build responsive layouts.
  • Add animations and transitions.
  • Design modern user interfaces.

Common Mistakes

  • Adding too many unnecessary styles.
  • Using inconsistent spacing and colors.
  • Ignoring responsive design.
  • Forgetting about accessibility and readability.
  • Writing CSS that is difficult to maintain.

Exercises

  • Explain the difference between HTML and CSS.
  • Name five common CSS properties.
  • Describe the four parts of the Box Model.
  • Research the difference between Flexbox and CSS Grid.
  • Think about why responsive design is important.

Summary

CSS is the language that controls the appearance of websites. It styles HTML elements, creates layouts and ensures webpages look great on every device. By understanding selectors, properties, the Box Model and responsive design, you've learned the core concepts that every web developer uses to build modern user interfaces.

Resources

  • MDN Web Docs — CSS
  • CSS Tricks
  • Tailwind CSS Documentation
  • Flexbox Froggy (Interactive Flexbox learning)
  • Grid Garden (Interactive CSS Grid learning)

Introduction

HTML provides the structure of a webpage, and CSS controls its appearance. JavaScript is the technology that makes websites interactive. It allows webpages to respond to user actions, update content dynamically and communicate with servers without reloading the page.

As web applications have become larger and more complex, many developers have adopted TypeScript. TypeScript is built on JavaScript but adds features that help developers write safer, more organized and easier-to-maintain code. Today, it has become the preferred choice for many modern frameworks, including React and Next.js.

Why It Matters

Modern websites are expected to be fast, interactive and responsive. Features like navigation menus, image sliders, online forms, shopping carts and real-time updates all rely on JavaScript. TypeScript builds on these capabilities by helping developers catch errors early and manage larger projects more efficiently.

Key Principles

JavaScript

JavaScript is a programming language that runs directly in the browser.

It is responsible for adding functionality to websites, including:

  • User interactions
  • Animations
  • Form validation
  • Dynamic content
  • API requests

Without JavaScript, most modern websites would be static and far less interactive.

TypeScript

TypeScript is a superset of JavaScript that introduces static typing and additional developer tools.

This makes code:

  • Easier to understand.
  • Easier to maintain.
  • Less likely to contain errors.
  • Better suited for large applications.

After development, TypeScript is automatically converted into standard JavaScript that browsers can understand.

JavaScript vs TypeScript
  • JavaScript — Simple and flexible, no type checking, ideal for smaller projects, runs directly in browsers.
  • TypeScript — More structured and predictable, supports static types, ideal for larger applications, compiles into JavaScript before running.

Today, many professional development teams choose TypeScript because it improves code quality and makes collaboration easier.

Where They're Used

JavaScript and TypeScript power countless web applications, including:

  • Interactive websites
  • Online stores
  • Social media platforms
  • Dashboards
  • Streaming services
  • Single-page applications (SPAs)

They also form the foundation of popular frameworks like React, Next.js, Angular and Vue.

Popular JavaScript Frameworks

Modern web development often uses frameworks built on JavaScript. Some of the most popular include:

  • React — Building interactive user interfaces.
  • Next.js — Full-stack React framework with server-side rendering.
  • Vue — Progressive framework for modern web apps.
  • Angular — Enterprise framework maintained by Google.
  • Svelte — Lightweight framework that compiles to efficient JavaScript.

Although these tools work differently, they all rely on JavaScript at their core.

Examples

JavaScript and TypeScript are used to:

  • Validate forms before submission.
  • Update content without refreshing the page.
  • Display notifications and popups.
  • Fetch data from APIs.
  • Build complete web applications.

Common Mistakes

  • Thinking JavaScript and Java are the same language.
  • Learning frameworks before understanding JavaScript fundamentals.
  • Assuming TypeScript replaces JavaScript instead of extending it.
  • Using JavaScript for everything when HTML or CSS would be more appropriate.

Exercises

  • Explain the role of JavaScript in web development.
  • Describe two advantages of using TypeScript.
  • Research one popular JavaScript framework.
  • Think of three interactive features on a website that require JavaScript.

Summary

JavaScript is the programming language that brings websites to life by adding interactivity and dynamic functionality. TypeScript builds on JavaScript by introducing features that make code safer and easier to maintain. Together, they form the foundation of modern web development and power many of today's most popular websites and applications.

Resources

  • MDN Web Docs — JavaScript
  • TypeScript Documentation
  • JavaScript.info
  • ECMAScript Language Specification
  • Next.js Documentation
  • React Documentation

Introduction

As websites became more interactive and complex, managing large amounts of JavaScript became increasingly difficult. To solve this, developers created frontend frameworks. These frameworks provide tools, structures and best practices that make building modern web applications faster, more organized and easier to maintain.

Today, most professional web applications are built using frameworks instead of plain HTML, CSS and JavaScript. Frameworks help developers focus on building features rather than solving the same problems repeatedly.

Why It Matters

Modern websites often contain hundreds or even thousands of components. Without a framework, maintaining large applications would quickly become difficult. Frameworks improve organization, encourage reusable code and simplify the development of responsive and scalable applications.

Key Principles

What is a Frontend Framework?

A frontend framework is a collection of tools and libraries that help developers build user interfaces more efficiently.

Instead of creating every feature from scratch, developers use frameworks to speed up development while following proven best practices.

Components

Most modern frameworks use components.

A component is a reusable part of a website, such as:

  • Navigation bars
  • Buttons
  • Cards
  • Forms
  • Footers
  • Product listings

Instead of writing the same code multiple times, developers build a component once and reuse it throughout the application.

React

React is one of the world's most popular frontend libraries.

It was developed by Meta and is used to build fast and interactive user interfaces. React introduced component-based development, making large applications easier to organize and maintain.

Many modern companies use React for their websites and applications.

Next.js

Next.js is a framework built on top of React. It adds powerful features such as:

  • File-based routing
  • Server-side rendering (SSR)
  • Static site generation (SSG)
  • API routes
  • Image optimization
  • Improved performance

Because of these features, Next.js has become one of the most popular choices for modern web development.

Why Frameworks Matter

Frameworks help developers:

  • Build applications faster.
  • Organize large projects.
  • Reuse components.
  • Improve performance.
  • Follow modern development standards.

Although every framework has its own approach, they all aim to make web development more efficient.

Popular Frontend Frameworks

Each framework has different strengths, but they all help developers build modern websites more efficiently.

  • React — Building interactive user interfaces
  • Next.js — Full-stack React applications
  • Vue — Lightweight and flexible web applications
  • Angular — Large enterprise applications
  • Svelte — High-performance web applications

Examples

Frontend frameworks are used to build:

  • Social media platforms.
  • Online stores.
  • Dashboards.
  • Streaming services.
  • Portfolio websites.
  • Software-as-a-Service (SaaS) applications.

Many of the websites you use every day are powered by frontend frameworks.

Common Mistakes

  • Learning a framework before understanding HTML, CSS and JavaScript.
  • Switching between frameworks too often.
  • Thinking frameworks replace JavaScript.
  • Choosing a framework simply because it's popular.

Exercises

  • Explain what a frontend framework is.
  • Describe the purpose of reusable components.
  • Research React and Next.js.
  • Think of three websites that likely use a frontend framework.

Summary

Frontend frameworks help developers build modern web applications more efficiently by providing reusable components, better project organization and powerful development tools. React and Next.js have become industry standards because they simplify the creation of fast, scalable and maintainable websites.

Resources

  • React Documentation
  • Next.js Documentation
  • Vue Documentation
  • Angular Documentation
  • Svelte Documentation

Introduction

While the frontend is everything users see and interact with, the backend works behind the scenes. It processes requests, stores data, manages user accounts and performs tasks that aren't visible in the browser. Without a backend, most modern websites wouldn't be able to support features like logins, online payments or saving user information.

The frontend and backend communicate through APIs (Application Programming Interfaces), allowing websites to send and receive data securely. Together, these technologies power everything from social media platforms to online banking.

Why It Matters

Many modern websites are dynamic, meaning their content changes based on user actions. The backend makes this possible by processing information, storing data in databases and sending the correct information back to the frontend. Understanding how the backend works helps you see how complete web applications are built.

Key Principles

What is a Backend?

The backend is the part of a web application that runs on a server.

Its responsibilities include:

  • Processing requests.
  • Managing users.
  • Storing and retrieving data.
  • Handling authentication.
  • Running business logic.

Unlike the frontend, users never interact with the backend directly.

Databases

A database stores information so it can be accessed later.

Common examples include:

  • User accounts
  • Products
  • Orders
  • Messages
  • Blog posts

Whenever you create an account or save information on a website, it is usually stored in a database.

APIs

An API (Application Programming Interface) allows different applications or systems to communicate with each other.

For example:

  • A user clicks Sign In.
  • The frontend sends a request to the backend.
  • The backend checks the database.
  • The backend sends a response back to the frontend.
  • The website displays the result.

APIs are one of the most important parts of modern web development because they connect the frontend with the backend.

Request & Response

Communication between the frontend and backend follows a simple process: Frontend sends a Request → Backend queries the Database → Backend sends a Response → Frontend displays the result.

This process happens every time you load data, submit a form or log into a website.

Authentication

Many websites need to verify who a user is before allowing access.

Authentication is used for:

  • Logging into an account.
  • Resetting passwords.
  • Protecting private information.
  • Securing online payments.

It helps ensure that only authorized users can access certain features or data.

Popular Backend Technologies

Different technologies can be used, but they all serve the same purpose: processing requests and delivering data.

  • Node.js — JavaScript runtime for backend development
  • Express.js — Building web servers and APIs
  • Next.js API Routes — Creating backend endpoints within Next.js
  • Python (Django / Flask) — Web applications and APIs
  • Java (Spring Boot) — Enterprise applications
  • C# (.NET) — Business software and web services

Examples

The backend powers many everyday features:

  • Logging into your account.
  • Saving a shopping cart.
  • Processing online payments.
  • Loading social media posts.
  • Sending emails.
  • Managing user profiles.

Common Mistakes

  • Thinking the backend is visible to users.
  • Assuming websites can store everything in the browser.
  • Confusing APIs with databases.
  • Believing every website needs a complex backend.

Exercises

  • Explain the difference between the frontend and the backend.
  • Describe the role of a database.
  • Explain what an API does.
  • Think of three websites that rely heavily on backend services.

Summary

The backend is responsible for processing requests, storing data and managing the logic behind modern web applications. APIs connect the frontend and backend, while databases store the information that applications need to function. Together, these technologies allow websites to provide dynamic, secure and interactive experiences.

Resources

  • MDN Web Docs — HTTP
  • Node.js Documentation
  • Express.js Documentation
  • Next.js Documentation
  • REST API Tutorial
  • Postman Learning Center

Introduction

Writing code is only one part of web development. Once a website is finished, it needs to be tested, stored, shared with other developers and published on the internet. This entire process is known as the development workflow.

Professional developers use tools like Git, GitHub and cloud hosting platforms to manage projects, collaborate with teams and deploy websites. These tools help keep projects organized, make teamwork easier and ensure websites can be updated safely over time.

Why It Matters

A website isn't useful if it only exists on your computer. Deployment makes your project available to users around the world, while modern development tools help developers track changes, collaborate with others and maintain applications as they grow.

Key Principles

Git

Git is a version control system that tracks changes made to your code.

With Git, developers can:

  • Save project history.
  • Undo mistakes.
  • Work on new features safely.
  • Collaborate with other developers.

Git is one of the most important tools in modern software development.

GitHub

GitHub is an online platform that stores Git repositories.

It allows developers to:

  • Back up projects.
  • Share code with others.
  • Collaborate in teams.
  • Review changes.
  • Contribute to open-source projects.

Many employers also use GitHub portfolios when hiring developers.

Deployment

Deployment is the process of publishing a website so anyone can access it through the internet.

Popular deployment platforms include:

  • Vercel
  • Netlify
  • Cloudflare Pages
  • GitHub Pages

Once deployed, a website receives its own web address and becomes publicly available.

Domains & Hosting

Every website needs a domain and hosting.

A domain is the website's address, such as swipe.com, google.com or github.com.

Hosting is the service that stores your website files and makes them available online. Without hosting, a website cannot be accessed by other users.

Continuous Improvement

Most websites continue to evolve after they're published. Developers regularly:

  • Fix bugs.
  • Add new features.
  • Improve performance.
  • Update security.
  • Respond to user feedback.

Modern development is an ongoing process rather than a one-time project.

Modern Development Workflow

A typical web development workflow looks like this: Plan → Write Code → Test → Commit with Git → Push to GitHub → Deploy → Website Goes Live.

Although every team has its own workflow, these steps are common across most modern web projects.

Examples

Modern development workflows are used to:

  • Publish portfolio websites.
  • Launch online stores.
  • Deploy SaaS applications.
  • Collaborate on team projects.
  • Release updates and bug fixes.

Common Mistakes

  • Forgetting to back up code with Git.
  • Deploying without testing.
  • Making changes directly to a live website.
  • Ignoring version control.
  • Not documenting important updates.

Exercises

  • Explain the purpose of Git.
  • Describe the difference between Git and GitHub.
  • Research a website hosting platform.
  • Explain the steps involved in deploying a website.

Summary

Building a website is only the beginning of the development process. Professional developers use tools like Git and GitHub to manage their projects and deployment platforms to publish websites online. By following an organized workflow, developers can build, maintain and improve web applications efficiently throughout their entire lifecycle.

Resources

  • Git Documentation
  • GitHub Documentation
  • Vercel Documentation
  • Netlify Documentation
  • Cloudflare Pages Documentation
  • Pro Git (Free Online Book)