Wondering where web development basics even start? Every website comes down to a browser asking a server for files, then HTML, CSS and JavaScript shaping what you see. Learn that chain and the rest falls into place.
| Item | Value |
|---|---|
| HTML’s job | Structure and semantics (meaning) |
| CSS’s job | Styling and layout |
| JavaScript’s job | Controlling dynamic behavior |
| Basic web hosting | Free for basic static file hosting, or a small amount per month (say $5-10) |
| Domain name | Rented for as many years as you want from a domain registrar |
The first three rows come from MDN’s web standards curriculum and the last two from MDN’s publishing guide. Prices and practices change, so check the source before you rely on them.
What web development basics actually cover
Web development is the craft of building the sites and apps people open in a browser. The basics are a short list of ideas that every later skill sits on: how a page travels from a computer to your screen, the three languages that describe it, and the machinery that keeps it online.
You do not need to master all of it before you start. MDN’s learning area says that if you are “a complete beginner (i.e., you’ve not installed a code editor or written any code yet), then this is the place to be”, which tells you the starting bar is low. The MDN Getting started modules cover that first stretch.
This guide follows the same order a beginner meets things in:
- How a request travels between a browser and a server.
- What HTML, CSS and JavaScript each do.
- Where front end and back end split.
- How hosting and domain names put a site online.
- Which first steps are worth taking.
How a web page reaches your screen
Start with the two parties involved. MDN explains that clients and servers are the two roles on the web: clients are the typical user’s internet-connected devices plus the software on them, usually a web browser such as Firefox or Chrome, and servers are computers that store webpages, sites, or apps.
The browser needs a server’s real address before it can ask for anything. The Domain Name System (DNS) is described by MDN as being like an address book for websites, and the browser consults it to find the IP address where the server lives.
Then the request goes out. MDN says TCP/IP defines how data should travel across the internet, and that the server sends a site’s files back in small chunks called packets, which the browser assembles into a complete web page.

On the server side of that exchange, MDN notes that the term web server can refer to hardware, software, or both working together. The hardware is a computer that stores a site’s files, and the software includes at least an HTTP server, which understands URLs and the protocol your browser uses to view webpages.
When the file is missing, the server still answers. MDN says that if the server does not find the requested document, it returns a 404 response instead.
If you want this journey unpacked step by step, our explainer on how do websites work goes further than this overview.
HTML, CSS and JavaScript: the three languages of the browser
Almost every page you visit is built from the same trio. MDN’s curriculum assigns each a purpose: HTML is for structure and semantics (meaning), CSS is for styling and layout, and JavaScript is for controlling dynamic behavior, as laid out in its web standards module.
A house makes a useful picture. HTML is the walls and rooms, CSS is the paint and furniture placement, and JavaScript is everything that responds when you flip a switch.
- HTML marks up headings, paragraphs, links, images and forms. If you want the detail, read what is html.
- CSS controls colour, spacing, fonts and how a layout adapts to screen size. The companion piece what is css covers it properly.
- JavaScript handles menus, form checks, live updates and other interaction. See what is javascript used for for examples.
The boundaries are not rigid. The same MDN curriculum gives a prime example of the overlap: using JavaScript to dynamically update CSS styling on the fly in response to app state changes or user choices.

These languages are not owned by one company. The same curriculum module lists how standards bodies operate, naming the W3C and the WHATWG among them, which is why a page you write should behave in any modern browser.
Front end, back end and the server side
Developers split the work into two halves. The visible half runs in your browser; the other half runs on the server and you never see it directly, a split covered in more depth in front end vs back end development.
MDN’s server-side introduction describes the browser half this way: “Code running in the browser is known as client-side code and is primarily concerned with improving the appearance and behavior of a rendered web page.” Its guide to the server side also calls the other half back-end scripting.
The two halves usually use different programming languages. The exception, per that same MDN article, is JavaScript, which can run on both sides.
Static sites versus dynamic sites
The simplest setup is a static site. MDN says a static web server is a computer with an HTTP server, and calls it static because the server sends its hosted files as-is to your browser.
A dynamic site adds more machinery. In the words of the MDN web server guide, the application server might fill an HTML template with content from a database to produce the final webpage.
That is why a shop with thousands of products can run on a handful of page templates. The data lives in the database and the template shapes how each product appears.
How hosting and domain names put a site online
A site on your own computer is invisible to everyone else. To publish it, you need somewhere for the files to live and an address people can type.
Those two needs map onto two products. What is web hosting covers the storage and serving side, and what is a domain name covers the address side.
Domain names in plain terms
Per MDN’s domain name guide, domain names provide a human-readable address for any web server on the Internet. IP addresses are hard to remember and might change over time, so people use names instead.
The ending of a name matters too. MDN says top-level domains tell users the general purpose of the service behind the domain name.
You do not buy a domain outright. MDN explains that companies called registrars use domain name registries to keep track of the technical and administrative information connecting you to your domain name.

What hosting costs and where to find it
MDN’s publishing guide says some web hosting services are free for basic static file hosting, while others cost a small amount per month (say $5-10). It adds that your home or office internet service provider may provide some limited hosting for a small website.
MDN also states that it does not promote specific commercial hosting companies or domain name registrars. We take the same line here: compare plans on what you need, not on whoever shouts loudest.
If you would rather skip the technical side and drag blocks into place, a no-code tool may suit you better. Our comparison of the best website builders sets out those options, and the guide is editorially independent of any provider.
Where to go next as a beginner
Keep your first project small: one page, one topic, three files. MDN says it does not consider the Getting started topics required before moving on to its Core modules, but students will have an easier time if they spend some time on them first.
A sensible path looks like this:
- Install a code editor and learn to move around your files.
- Write a plain HTML page, then style it with CSS.
- Add one small piece of JavaScript behaviour.
- Publish it using a free or low-cost host.
If a career is the goal, how to become a web developer lays out the longer route. For the habits that make learning stick, our coding tips for beginners are a practical companion.
Frequently asked questions
Do I have to learn all three languages before I build anything?
Show answer
No. Start with HTML alone, because a page with only structure still works in a browser. Add styling and behaviour one layer at a time as your project asks for them.
Is a web server the same thing as web hosting?
Show answer
They are closely linked but not identical. The server is the machine and software that answer requests, while hosting is the service of renting space and access on one, so you can pay for hosting without ever owning the hardware.
Can I put a site online without paying?
Show answer
Yes, for simple sites. MDN’s publishing guide lists free services such as Neocities, Google Sites and WordPress. Expect to give up some control compared with buying hosting and a domain of your own.
Why do websites use names instead of IP addresses?
Show answer
People remember names far more easily than strings of numbers, and an address can change behind the scenes. A name stays put while DNS quietly points it at whichever server currently holds the site.



