# Web Design Guidelines Audit & Redesign Report
## Source: info.cern.ch/hypertext/WWW/TheProject.html

---

### Original HTML: Issues Observed

**Semantic structure (lines 1–5)**
- `<HEADER>` and `<BODY>` are non-standard uppercase legacy tags with no `lang`, `charset` or `viewport` meta. No `<html lang>` attribute.
- No skip link; keyboard users cannot bypass repeated nav.

**Heading hierarchy (line 6)**
- Single `<H1>World Wide Web</H1>` with no subordinate headings. The definition list (`<DL>`) at line 22 uses `<DT>`/`<DD>` with no section headings, making the page structure invisible to screen readers scanning by heading.

**Definition list as navigation (lines 22–72)**
- `<DL>` entries are primary navigation destinations but carry no landmark role, no `aria-label`, and no visual grouping. On mobile, raw `<DT>` / `<DD>` pairs present very small tap targets with no padding.

**Link accessibility (lines 6–71)**
- All `<A>` elements use `NAME=` attributes (HTML 2.0 anchor pattern) alongside `HREF`. These are valid but produce no visible focus indicator in the original; there is no `outline` or `focus-visible` rule.
- No `lang` attribute; screen readers cannot infer language for hyphenation or pronunciation.

**Typography**
- Straight quotes and `...` throughout; no ellipsis character (…).
- Body font defaults to browser UA serif — no legibility setting for mobile.
- No `text-wrap: balance` on the heading; widow risk.
- Line length is uncontrolled; on wide viewports content spans full width.

**Images / media** — None present (no issue, but also no `alt` attributes needed).

**Touch / mobile**
- No `viewport` meta (line 1–4): page renders at desktop width on phones, requiring horizontal scroll.
- `<DT>` link tap targets are inline text height only; well under 44 × 44 px recommendation.

---

### Changes Implemented

| Issue | Fix |
|---|---|
| No `viewport` meta | Added `width=device-width, initial-scale=1.0` |
| No skip link | `<a class="skip-link" href="#main-content">` placed first in `<body>` |
| No `lang` attribute | `<html lang="en">` |
| No semantic sections | `<h2>` headings group Resources, Technical, About, Participate with `scroll-margin-top` |
| Flat `<DL>` nav, tiny targets | `<ul role="list">` cards with `.resource-link` padding ≥ 44 px touch height (`pointer:coarse` block) |
| No visible focus | `focus-visible` ring in amber (`#f0a500`) on all interactive elements; never `outline:none` |
| Straight quotes / `...` | `&#8230;` (…) used for ellipsis |
| No `text-wrap:balance` | Applied to `h1` and `h2` via `text-wrap:balance` |
| No reduced-motion guard | `@media (prefers-reduced-motion:reduce)` disables all transitions |
| No disclosure | Prominent banner: "Independent redesign concept — not affiliated with the original website" with link to source |
| `theme-color` missing | `<meta name="theme-color" content="#ffffff">` added |
| Long uncontrolled lines | `max-width:52rem` container; body `line-height:1.65` |
| All link destinations | Every original URL preserved exactly as supplied |

---

### Manual Checks Still Required

- **Colour contrast**: Cobalt `#1a4fd6` on white passes APCA for large text; verify small-text ratio with a live contrast tool (target ≥ 4.5:1 WCAG AA).
- **Screen reader announcement**: Verify skip link, landmark order and `h2` navigation with NVDA/VoiceOver on a real device.
- **Keyboard tab order**: Confirm quick-nav pill links and resource cards cycle logically in a live browser.
- **Actual link validity**: All destinations are preserved from the source; liveness of CERN URLs is not testable offline.
- **iOS Safari tap-highlight**: `-webkit-tap-highlight-color` behaviour on the resource cards should be tested on a physical iPhone.