Sub topic 5
Technical foundations every hub needs
This chapter assumes you know what a website, a page and a URL are. It also assumes you know the main marketing channels, such as social media, email and ads. No programming is required. The short HTML examples are explained as they appear.
Every spoke in the hub-and-spoke model sends people to your website. If the site is slow, hard to use on a phone, insecure or inaccessible, that traffic is wasted. Four foundations keep the hub working: speed, mobile support, security and accessibility.
Speed
Visitors leave slow pages, and paid clicks on a slow page are money lost. Search engines also use page experience as a ranking signal. Google's Core Web Vitals measure three things:
| Metric | What it measures | Good target |
|---|---|---|
| Largest Contentful Paint (LCP) | How long the main content takes to appear | 2.5 seconds or less |
| Interaction to Next Paint (INP) | How quickly the page responds to a click or tap | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | How much the layout jumps while loading | 0.1 or less |
The usual causes of slow pages are large images, too many scripts and cheap hosting. Compress images, use modern formats, load only the scripts you need, and use a content delivery network (CDN). A CDN is a network of servers that delivers your files from a location near the visitor.
Marketing tags add to this cost. Every analytics, advertising and chat script you add makes the page heavier, so review them regularly.
Mobile
Most visits to many sites come from phones. Search engines also index the mobile version of a page first. The page needs a responsive layout, which adapts to the screen width. It starts with the viewport tag in the page head:
<head>
<title>Spring Sale | Example Shop</title>
<meta name="description" content="Save on garden tools and plants in our spring sale.">
<link rel="canonical" href="https://www.example.com/spring-sale">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>The viewport line tells phones to use the real screen width instead of shrinking a desktop layout. The title, description and canonical elements matter for search, which a later chapter covers. Check buttons and links for tap size, and test forms on a real phone.
Security
Use HTTPS on every page. HTTPS encrypts traffic between the visitor and your server, and browsers show a warning on sites that lack it. Visitors who see that warning rarely fill in a form.
- Redirect all
http://addresses tohttps://. - Renew your certificate before it expires. An expired certificate blocks visitors with a full-screen warning.
- Keep your CMS, themes and plugins updated, because outdated plugins are a common way sites get hacked.
- Use strong passwords and two-factor login for everyone with admin access.
Security also supports lead capture. People will only give an email address to a site they trust.
Accessibility
Accessibility means people with disabilities can use the site. That includes people who use screen readers, keyboard navigation or captions. It also helps everyone else, for example someone reading in bright sunlight. In some countries the law requires it.
The widely used standard is the Web Content Accessibility Guidelines (WCAG). Practical basics:
- Give meaningful images alt text.
- Keep enough contrast between text and background.
- Make every link and button usable with the keyboard alone.
- Connect each form field to a visible label, as the form below does.
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input id="email" name="email" type="email" required>
<button type="submit">Get the free guide</button>
</form>The for attribute on the label matches the id of the input. Screen readers announce the label, and tapping the label focuses the field.
How the foundations connect
Common errors
- Testing only on a fast office computer and connection. Test on a mid-range phone with a mobile network.
- Adding a tracking script for every new campaign and never removing old ones.
- Serving some pages over HTTP, or loading images over HTTP on an HTTPS page.
- Treating accessibility as a final polish step. Fixing it late costs more than building it in.
Exercise
A paid ad campaign sends many visitors to a landing page, but most leave within seconds on phones. Name two foundation checks you would run first and one fix for each.
Show answer
Check speed with PageSpeed Insights or Lighthouse on a mobile profile. If LCP is slow, compress large images or remove unused scripts. Then check mobile layout on a real phone. If the page does not adapt, add the viewport meta tag and a responsive layout, and enlarge small tap targets.