Web Development Terms — Simple & Detailed

Server, Backend, Frontend, Database, Domain, DNS, HTTP, Methods, Status codes — explained with examples for students.

Core idea

What is the Web? (Short)

The web is a system where a client (your browser or phone app) asks for something and a server replies. The rules they follow are called HTTP.


Server

What is a Server?

A server is a computer program or machine that waits for requests from clients (browsers, apps) and responds. Servers can run on a physical computer or in the cloud (like AWS, DigitalOcean).

Remember: A server isn't just hardware — it's code + machine together. The code decides how the server responds.

Frontend

What is the Frontend?

The frontend is what users see and interact with: pages, buttons, forms, animations — everything that runs in the browser or mobile app.

Example flow: User clicks "Buy" → frontend sends a request to backend → backend confirms → frontend shows "Order placed".

Backend

What is the Backend?

The backend is the hidden part that runs on a server. It handles logic, talks to the database, and returns data to the frontend.


Database

What is a Database (DB)?

A database stores data persistently — users, orders, messages, files, etc. It answers questions like "get user with id 12" or "save this order".

Example: When you register, the backend writes your name & email into a database table called users. Later the backend fetches it with a query.

Domain & DNS

What is a Domain and DNS?

A domain is the human-friendly name you type in a browser (for example zninfotech.com). DNS is like the internet's phonebook that translates that name into the server's numeric address (IP).

DNS also handles records like A (address), CNAME (alias), MX (mail servers), and TXT (verification).

Hosting & Ports

Where does the server live? (Hosting & Ports)

Servers are hosted on physical machines or cloud providers. Each service listens on a port (a number) — it helps the machine know which program should receive the request.


HTTP

What is HTTP?

HTTP is the set of rules (protocol) clients and servers use to talk. It's how browsers ask for pages and APIs exchange data.

Methods

Common HTTP Methods

HTTP methods tell the server what action you want to perform.

GET     /products        => Read data (safe, no change)
POST    /orders          => Create new resource (send data)
PUT     /users/12        => Replace/update full resource
PATCH   /users/12        => Update part of a resource
DELETE  /posts/5         => Remove a resource
OPTIONS /api             => Ask what methods are allowed
HEAD    /resource        => Like GET but without the response body
    
Example: To submit a signup form frontend uses POST /signup with your name & password in the request body.

Request & Response

HTTP Request & Response

Every HTTP exchange has a request (sent by client) and a response (sent by server).

Request (from browser):
POST /api/login HTTP/1.1
Host: example.com
Content-Type: application/json

{ "email": "you@example.com", "password": "secret" }


Response (from server):
HTTP/1.1 200 OK
Content-Type: application/json

{ "token": "ey...jwt..." }
    

Status Codes

HTTP Status Codes (Meaning)

Status codes are short numbers the server uses to say what happened.


Middleware

What is Middleware?

Middleware are small functions that run in the middle of a request. They can:

app.use(express.json()); // parse JSON bodies
app.use((req, res, next) => {
  console.log(req.method, req.url);
  next(); // continue to next middleware or route
});
    

res.json()

Why use res.json()?

res.json() is a helper that converts JavaScript object → JSON string and sets header Content-Type: application/json automatically. It's convenient & correct for sending JSON responses.


Security

Common Backend Security Points


APIs & REST

What is an API & REST?

API (Application Programming Interface) is a set of endpoints the backend exposes so other programs (or the frontend) can use its features. REST is a style for designing APIs using HTTP methods and clean URLs.

GET  /api/products       => list products
GET  /api/products/10    => get product with id 10
POST /api/products       => create product
PUT  /api/products/10    => update product 10
DELETE /api/products/10  => delete product 10
    

Quick Glossary

Short Definitions


Mini Examples

How data flows (short)

User clicks a button → Frontend sends an HTTP request → Server runs backend code → Server queries DB → Server returns response → Frontend updates UI.

// Simple Express-like pseudo code
app.post('/login', (req, res) => {
  const user = db.findUser(req.body.email);
  if (!user) return res.status(404).json({error:"User not found"});
  if (!checkPassword(req.body.password, user.hash)) return res.status(401).json({error:"Invalid"});
  const token = createToken(user.id);
  res.json({ token }); // send token to frontend
});
    

Where to learn next?

Suggested Learning Path

  1. HTML & CSS basics (frontend structure)
  2. JavaScript basics (DOM & web requests)
  3. Node.js + Express (backend fundamentals)
  4. Databases: SQL (Postgres) or NoSQL (MongoDB)
  5. Authentication (JWT, sessions) and HTTPS
  6. Build a small fullstack project (todo, blog, shop)

Tip: Build a small app that stores data in a DB and exposes an API — this helps connect all concepts.