How I structure a single HTML file for a landing page

A landing page can be useful without becoming a small content-management system. For mischa-andriessen.com, I want the first screen to explain the person behind the domain, then offer a quiet route to selected writing, photographs, or work. The approach is deliberately narrow: one HTML document contains the content, presentation, and small interactions. That keeps the site easy to host, inspect, and move, while leaving room to grow from a personal doorway into a broader portfolio.

The file is not a dumping ground. Someone checking it on a train between Melbourne suburbs should get the same clear hierarchy as a visitor at a kitchen table, and the experience should work on a phone during a quick arvo browse. Australian English runs through the copy, although the tone avoids a folksy “no worries” performance. The page has one practical job: identify its owner and make the next useful action obvious without requiring an account, an app, or an exhausting scroll.

Start with a page contract

Every file begins with a page contract: who it is for, what it should achieve, and what remains out of scope. On a personal domain, that means explaining a practice in plain language, offering a few strong destinations, and making contact or project details easy to find. A landing page earns trust when its purpose is clear before decorative details compete for attention.

Scope matters just as much. I decide what the page must communicate without external data: a short biography, selected projects, a current note, and a dependable email link. In the Australian freelance market, where a single link or PDF portfolio is often passed directly between clients and collaborators, a fast personal page can be more useful than a broad but vague collection. The domain should work like a well-kept calling card.

I also define the action the page supports. For this site, that action might be reading a guide, viewing a photography set, or starting an email conversation. I do not add a newsletter form merely because forms are common elsewhere. If a later version collects information, consent, storage, and removal should be designed with the interface rather than inserted as a legal afterthought.

Build the document in semantic order

The document follows a predictable order. The head contains the character set, viewport setting, page title, meta description, canonical address, theme colour, and social sharing metadata. I use lang="en-AU", write a distinct title for every page, and keep the description specific enough to stand alone in search results. A small inline SVG or data-URI favicon avoids a second file while still giving the tab a recognisable mark.

In the body, I begin with a skip link, followed by the header, primary navigation, main content, and footer. The main landmark contains the page’s central material, while each substantial area has its own labelled section and stable identifier. Navigation uses ordinary links so it works before scripts run. I reserve heading levels for the actual hierarchy: one page title, section headings beneath it, and no heading chosen because a particular font size looks attractive.

The visible copy should make sense when read from top to bottom, which is also the order assistive technology receives it. Navigation labels describe destinations rather than interface mechanics, buttons state their purpose, and links explain where they lead when the destination is not obvious. Images receive alternative text based on what they communicate; decorative marks are hidden from screen readers. This semantic base makes later styling safer because each element already has a defined role.

Keep the visual system inline

All visual rules live in a single style element in the head. A short set of custom properties establishes the palette, spacing rhythm, type scale, and maximum content width. I avoid a framework or a large reset because each dependency introduces code that the page does not need. A minimal reset handles predictable browser differences, then component rules stay close to the markup they affect.

Typography carries most of the visual identity. I choose one readable family with a sensible system fallback, then use fluid sizes so headings breathe on a wide monitor without dominating a phone. Line length is controlled with a content measure, and line height is set before any decorative spacing is added. The restrained typography discussed on this site leaves room for photography and whitespace instead of asking every element to compete for attention.

Spacing follows a small scale rather than arbitrary pixel values. Generous gaps separate major sections, while tighter spacing groups labels with their content. A simple grid handles the main layout and collapses cleanly at narrow widths; media queries are reserved for genuine layout changes, not for chasing every device. This mobile-first structure suits quick, one-handed browsing on public transport and keeps the source order intact.

Colour stays similarly disciplined. A near-neutral base, one readable text colour, and a small accent provide enough contrast without turning the page into a brand template. I check both light and dark preferences, keyboard focus states, and reduced-motion settings. Visual restraint should never mean weaker access: readable contrast, visible focus, and resizable text are part of the design rather than optional polish added after launch.

Let photography carry the tone

When I choose a hero image, I consider the words it will sit beside, the dimensions available, and the impression left after the first second. A photograph should support the subject instead of supplying drama the copy lacks. For a local example, an image of a Melbourne laneway café could suggest a quiet, observant practice through light, texture, and human scale without resorting to a generic stock-office scene.

Technical choices are part of that judgement. The hero image receives an explicit width and height to prevent layout movement, modern decoding hints, and eager loading because it is likely to appear in the first viewport. Images below the fold can wait. A picture element with correctly sized sources lets a phone download a smaller file while a larger screen receives a sharper version. The CSS then controls the crop rather than relying on whatever dimensions the browser happens to render.

Keeping the page in one HTML source file does not require every photograph to be embedded as base64. A large encoded image can make the document heavy and awkward to edit. I keep CSS and small scripts inline, host substantial photographs as optimised assets, and use inline SVG when a graphic is simple enough to remain text. This definition of a single file gives the project a tidy centre without sacrificing loading speed or image quality.

Add behaviour only when it earns its place

Interaction begins only where the static page fails a real need. A compact navigation toggle may help on a small screen, and a theme control may be useful if the colour system supports both modes. Anything else should stay out. If JavaScript is delayed or unavailable, headings, links, forms, and the core message must still work. Progressive enhancement keeps that resilience built into the HTML rather than treating it as an error state.

When script is justified, it is a short block at the end of the body with no framework. It targets stable identifiers, stores only necessary state, and updates button labels or hidden attributes so the interface remains understandable. I avoid animation that moves content without purpose, and I respect the visitor’s reduced-motion preference. Small amounts of code are easier to audit when they sit beside the behaviour they control.

There is also no reason for the landing page to carry advertising scripts, analytics beacons, or chat widgets by default. A personal site benefits from a quick first response and a clear privacy story. I measure success through useful actions such as reading a guide or opening an email, not through a stack of trackers. That restraint improves performance, reduces maintenance, and makes the final page feel like a place rather than an advertising network.

Review, publish, and maintain

Before publishing, I validate the HTML, check the keyboard path, resize the layout, and test the page with images and script disabled. I inspect the title and social preview, confirm that links resolve, and use browser tools to check loading behaviour and layout shifts. The page is tested on a modest phone as well as a large display because the first version should not depend on fast home broadband.

After launch, I keep a weekly review ritual for the content rather than waiting for a redesign to notice stale details. The review checks broken links, outdated project notes, spelling, image weight, and whether the main action still reflects current priorities. Small corrections happen immediately; structural changes wait until repeated evidence shows they solve a genuine problem. This habit gives a minimal site a long life without forcing constant visual churn.

Publishing is equally simple. The finished file can be placed on static hosting or committed to a repository with a predictable build step, while the domain points to the deployed version. I keep ownership of the registrar and hosting account, renew the .com domain, and retain a local copy of the source. If a service disappears, the page can move without relying on a proprietary editor or an export process that loses its structure.

Maintenance continues with the same restraint used in the design. New pieces earn a place only when they strengthen the page’s purpose, and each addition is checked for weight, accessibility, and reading order. Privacy requests or account changes have a clear owner and response path if the site later expands. The result is a page that can remain quiet, portable, and recognisably personal while still adapting as the person behind it takes on new work.