I wrote this article about a year before publishing it, but I lost the original images. I finally remade them and put this out.

Web development can be divided into two parts: front-end and back-end. Front-end focuses on the client side of a website—the appearance and interactivity of a page. At a high level, it mainly consists of HTML, CSS, and JavaScript. This article covers the basics of front-end development.

Originally published on Medium.

What front-end development really is

Everything you can see on a website or webpage falls under front-end development. We call it the front end because it is the front of a website—what’s visible to the user.

Diagram of browser, server, and database with HTML, CSS, and JavaScript on the browser side of the request–response cycle
The browser uses HTML, CSS, and JavaScript to display the page after the server responds.

When you enter a URL, a request goes to the server, and the server sends a response—usually an HTML document. The browser reads that markup and the linked files. Based on the HTML, CSS, and JavaScript, it decides which elements appear on the page, in what order, how they look, and what happens on clicks, keypresses, and other events. Creating that HTML, CSS, and JavaScript is front-end development.

If you want a deeper walkthrough of the request–response path, start here:

Related: What Happens When You Visit a Webpage?

What is HTML?

HTML stands for Hypertext Markup Language. It is one of the three languages a browser understands. We use it to define the structure of a page and the elements that appear on it. We also give the browser metadata and point it at linked files that affect the page—stylesheets and scripts.

Orange graphic with a white document-shaped HTML badge
HTML defines structure and the elements on the page.

Understanding the HTML

In the image below you can see how HTML is written to create a specific layout.

Medium editor navigation bar above the HTML nav markup that produces it
A rendered nav bar and the HTML tags that describe its structure.

Remember: the design shown above is the result of HTML and CSS together. HTML alone will not produce the same look. We generally do not style elements in HTML—we use CSS for that.

I keep saying “elements” without defining the word. Everything on a webpage is an element: a site header is a header element, a footer is a footer element, and so on. We write those elements in the HTML document as tags.

What is CSS?

CSS stands for Cascading Style Sheets. The name says a lot: these are stylesheets—files that hold styling for our HTML elements. Styling means defining property–value pairs on those elements, and those pairs control how they appear on the page.

Code editor showing a nav CSS rule with width, height, background-color, max-width, and color
CSS applies property–value pairs to HTML elements to control appearance.

In that example we set properties on HTML elements—common ones like height, width, and background color. There are many more, and you won’t believe what CSS can do until you try it yourself.

Thanks for reading—see you next time.