Short answer
A static site generator and HTML written by hand both produce HTML files a browser can open. You type the tags yourself, or Hugo writes them into a public folder. The browser still receives markup. Hugo calls itself an open-source static site generator, and handwritten HTML needs no build.
Last verified against the sources listed below.
Key takeaways
- MDN describes HTML as the code that structures a web page and its content.
- Hugo's quick start says the hugo command writes HTML files into the public directory.
- Hugo's homepage calls Hugo an open-source static site generator and says it is free to use.
- You open a handwritten index.html in a browser. A generated file opens the same way.
- Astro's docs describe server-rendered HTML that can be prerendered or served on demand.
A static site generator vs html choice is about who writes the markup, not about what the browser finally reads. MDN’s HTML lesson says HTML is the code used to structure a web page and its content. You wrap text in elements so the browser can show paragraphs, headings, lists, images, and links.
Hugo’s homepage calls Hugo an open-source static site generator and says it is free to use under the Apache 2.0 License. The quick start says that when you publish, Hugo renders build artifacts to the public directory. That output includes the HTML files for the site, plus assets such as images, CSS, and JavaScript.
Both paths leave you with HTML a browser can open. Handwritten HTML is the file you typed. Generated HTML is the file the tool wrote. The visitor does not see your Markdown drafts or your template calls.
What is handwritten HTML?
Handwritten HTML is markup you type and open directly. MDN’s lesson has you create index.html, put a doctype and a root html element around a head and a body, and then open that file in a browser. If the image path is right, the image shows. If a link’s href is right, the click goes where you aimed it.
The lesson treats elements as wrappers. A paragraph uses p. A heading uses one of six heading levels. An unordered list uses ul and li.
An anchor uses a plus href. An image uses img with src and alt, and that image element is empty: it has no closing tag in the usual sense.
Nothing in that lesson requires a build command. You save the file and reload the browser. HTML is the whole page structure. When the page needs columns or color, that is a stylesheet, which is a separate layer from the generator question.
What does a static site generator write?
A static site generator writes the HTML for you from source files. Hugo’s quick start has you create a project, add a Markdown post under content, set draft to false when you want it published, and run hugo. The command writes the site into public, including an HTML file for each page the build includes.
The homepage describes Hugo as written in Go, with a templating system, asset pipelines, and an embedded web server for development. The quick start uses a theme, Ananke, added as a Git submodule, and a hugo.toml file for baseURL, locale, title, and theme. You edit the project. Hugo edits the output folder.
Astro’s why-Astro page describes a related but broader tool. It calls Astro a web framework for content-driven sites and says Astro began as a static site builder. Rendering is server-first, either prerendered or on demand. Prerendered output is HTML prepared before the visit.
On-demand rendering still sends HTML, but it is not a folder you generated once. You would not open that response as a file from disk.
Who edits what?
You edit the source, and the browser reads HTML either way. In the handwritten case, the file you edit and the file you open are the same index.html. In the Hugo case, you edit Markdown, templates, and hugo.toml. The HTML in public is a build result.
Edit the result by hand and the next build can overwrite it. Put lasting copy in the Markdown or the template instead.
| HTML written by hand | Hugo static site generator | |
|---|---|---|
| What you edit | The .html file itself |
Markdown content, templates, and config |
| What the browser opens | That same file | HTML written into public |
| Build step | None in MDN’s first lesson | The hugo command |
| Repeated pages | Copy the markup yourself | A template fills each page |
| Drafts | Whatever you saved | Drafts stay unpublished until you say otherwise |
| Cost named by the project | No tool fee in the MDN lesson | Hugo’s homepage says it is free to use |
CSS still styles both results. Color and layout live in the stylesheet, not in the generator.
A CSS Grid Generator writes grid rules you can paste into a stylesheet. It does not choose between typing HTML and generating it. The grid lands in the CSS file either way.
When should you write HTML yourself?
Write the HTML yourself when the site is one page or a handful of pages you can hold in your head. MDN’s lesson is built for that start: one file, a few elements, open it in a browser, fix the path if the image fails. You see every tag. There is no theme layer between you and the document.
That path gets tedious when the same header, nav, and footer must match on dozens of pages. Change one link and you edit every file. A generator’s template is the usual answer to that repetition. Hugo’s quick start is aimed at a project with content files and a theme, not at a single experiment.
You also stay with handwritten HTML when you cannot or do not want a toolchain. The Hugo tutorial expects a command line, Git, and a Hugo install at v0.158.0 or later. If those tools are not available, the MDN file still works.
When should you use a generator?
Use a generator when many pages share a layout and you would rather edit content than copy tags. Hugo’s homepage lists documentation sites, landing pages, and corporate, government, nonprofit, education, news, event, and project sites among the things people build. The quick start’s publish step is what turns that project into HTML files.
Use Astro’s model when you want a content site that can prerender HTML and also render on demand, and when you may add UI components. The why-Astro page says the .astro template language is a superset of HTML, so valid HTML is valid Astro templating. It also says Astro can host components from other UI tools. That is a framework with a static-site history, not a second copy of Hugo.
Vue’s introduction lists static site generation as one way to use Vue. That is optional. You can still ship the handwritten file MDN describes and never add a generator. The browser test is the same: open the HTML and see if the structure is there.
What goes wrong?
People edit the generated HTML and then lose the change on the next build. Hugo writes public when you run hugo. The durable copy is the content and the templates. If a sentence matters, it belongs in the Markdown or the layout, not only in the output file.
People also forget drafts. A new Hugo post starts with draft set to true, and the quick start says a normal build skips drafts. If a page is missing after publish, check that flag before you blame the host.
A third miss is treating every framework as a folder of static files. Astro’s docs say rendering can be on demand. If you need a file you can open from a disk without a server, confirm the page was prerendered. Handwritten HTML already is that file.
Frequently asked questions
Which Hugo version does the quick start ask for?
Hugo's quick start says to install Hugo v0.158.0 or later, plus Git, and to be comfortable on the command line. The page was last updated November 19, 2026. That version note is a prerequisite for the tutorial, not a claim about how large a site the tool can build. The same page tells Windows readers to use PowerShell or a POSIX shell, not Command Prompt or Windows PowerShell.
What happens to a Hugo draft?
The quick start shows a new content file with draft set to true in the front matter. It says Hugo does not publish draft content when you build, unless you run the server with a flag that includes drafts. Setting draft to false is how that tutorial marks the page as ready. The build command hugo then writes the public files, including HTML.
Does Astro only emit static files?
Astro's why-Astro page calls Astro a web framework for content-driven websites and says it began as a static site builder. The same page says server-first rendering can be prerendered or on demand. A prerendered page is HTML prepared ahead of the visit. An on-demand page is still HTML sent to the browser, but it is not the same as a file you built once and copied to a host.
What does a minimal HTML document need?
MDN's first-website article walks through a doctype, an html element with a lang attribute, a head, and a body. The head in that sample sets the character encoding to UTF-8, a viewport width, and a title that shows in the browser tab. The body holds what visitors see. The article then has you open index.html in a browser to check the result.
Can Vue replace a static generator?
Vue's introduction lists Jamstack and static site generation as one way to use Vue, next to enhancing static HTML with no build step. That is a mode of a UI framework, not the same product as Hugo. You can also keep writing HTML and add Vue only where a section needs to update. The introduction says the framework is incrementally adoptable for that reason.
Sources
- HTML: Creating the content · MDN, 2026
- Hugo · Hugo, 2026
- Quick start · Hugo, 2026
- Why Astro? · Astro, 2026
- Introduction · Vue.js, 2026