A static website has fixed content. It does not require programming languages to build one. It is the easiest form of website to create. Static websites are build of HTML, CSS, and JavaScript.
A static website is made up of a fixed number of pre-built files stored on a web server. These files are written in HTML, CSS, and JavaScript, which are called “client-side” languages because they execute in the user’s web browser. When a user requests a page from the server with a URL, the server returns the HTML file that is specified by the URL and any accompanying CSS and/or JavaScript files.
During this exchange, the web server does not alter the files before they’re shipped to the user, so the web page will look the exact same to everyone who requests it. The content is “static” — the only way to change how the website looks is by manually changing the content of the files.
This doesn’t mean that static websites can’t be interactive or engaging. They can still have clickable links and buttons, images and video, CTAs, forms, digital downloads, and animations powered by or JavaScript. With enough skill, you can even get a static website to look pretty nice. But, a static site will always look the same to everyone.
Common examples of static websites include resume websites, portfolio websites, brochure websites, one-off landing pages, and other informational or read-only sites. These websites are small (three to four pages or fewer), limited in content, and don’t require personalized content or frequent updates.
Most benefits of static websites stem from their simplicity. Static sites are the easiest kind of site to build and maintain from scratch. If you want to launch a basic website quickly and cheaply, static sites are a solid option. With knowledge of HTML and CSS, you can code up a decent one without too much effort or cost.
Static websites also tend to be faster than dynamic websites on the user’s end. This is because pages on static websites are already built and require minimal back-end processing. The server only needs to retrieve the requested files and deliver them to the client. Static websites are also easier to cache due to lack of variation in content. Site speed, also called website performance, is crucial for a positive user experience and also affects search engine ranking.