A static site is built from plain HTML, CSS and optional JavaScript. It can run on a basic web host without a database or backend.
Create a folder and homepage
mkdir -p ~/my-first-site
cd ~/my-first-site
nano index.html
Paste this HTML into index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My First Site</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<h1>Hello from my terminal!</h1>
<p>This page is mine to edit.</p>
<a href="https://example.org">A useful link</a>
</main>
</body>
</html>
Add CSS
Create style.css in the same folder:
body {
background: #090711;
color: #f2e9ff;
font: 1.1rem/1.65 monospace;
margin: 3rem auto;
max-width: 44rem;
padding: 0 1rem;
}
a { color: #c787ff; }
Preview before upload
Open the local index.html in a graphical browser. If you're using a text browser, the core content should still be readable.
Understand the file layout
my-first-site/
├── index.html
└── style.css
On a typical shared hosting account, the public document root is called public_html. Files must go inside that root; uploading an extra enclosing folder would change the web address.
Build principle: HTML provides meaning, CSS controls appearance, and JavaScript adds optional behaviour. A tutorial should work even when JavaScript is disabled.