LiquidPurple - Strategic Website Management

Glossary of Terms

We have compiled this list of terms and definitions to help you better understand the terminology used within the web development community.

Visual Order Follows DOM

Search for glossary terms (regular expression allowed)
Visual Order Follows DOM means the on-screen arrangement of content should match the underlying code order that keyboards and screen readers follow. When these fall out of sync, users can experience confusing focus jumps and reading order problems. Keeping them aligned improves usability for everyone.

Visual Order Follows DOM

The DOM (Document Object Model) is the order of elements in your HTML source code. It is the sequence that screen readers read aloud and that keyboards follow when a user presses Tab. Visual order is where those elements actually appear on screen after CSS styling is applied. When these two orders match, everyone navigates your content in the same logical sequence — whether they are using a mouse, a keyboard, or a screen reader. When CSS pushes things around so the visual layout no longer matches the source order, keyboard users experience jarring focus jumps and screen reader users hear content in an order that does not match what sighted users see. Keeping both in sync is a foundational accessibility practice.

Why It Matters

  • Keyboard navigation becomes predictable. When visual and DOM order match, pressing Tab moves focus in the direction users expect — left to right, top to bottom. A mismatch sends focus jumping to unexpected locations, disorienting users who rely on the keyboard.
  • Screen readers make sense. Assistive technology reads elements in DOM order regardless of visual placement. If the code puts a footer paragraph before a headline but CSS visually rearranges them, a screen reader user hears the footer first. That is confusing and unhelpful.
  • It supports cognitive accessibility. People with cognitive disabilities benefit from consistent, predictable layouts. When focus order matches what they see, the page behaves the way they expect it to, reducing confusion and frustration.
  • It reduces maintenance headaches. A page where source order and visual order disagree is harder to debug. Focus issues and reading order bugs become increasingly difficult to track down as the gap between DOM and visual layout widens.

How to Fix It

  1. Structure your HTML in reading order. Write your source code in the order you want people to read it. Place the heading before the paragraph, the navigation before the content, the sidebar after the main area. Start with a meaningful document flow.
  2. Avoid CSS order and flex/grid reordering for meaningful content. Properties like order in flexbox and grid, or aggressive use of position: absolute, can rearrange elements visually without changing the DOM. Use them for minor decorative adjustments, not for rearranging major content blocks.
  3. Tab through your page. The simplest test is to press Tab repeatedly and watch where focus goes. If it jumps backwards, skips sections, or lands somewhere unexpected, your visual and DOM orders are out of sync. Fix the HTML source order to match what you see.
  4. Be careful with responsive layouts. Layouts that reorder content at different breakpoints can create DOM-visual mismatches on certain screen sizes. Test tab order at every responsive breakpoint, not just desktop.
  5. Do not use tabindex to patch the problem. It can be tempting to add tabindex values to force a custom tab order that matches the visual layout. This creates brittle, hard-to-maintain code. Fix the source order instead.

Common Mistakes

  • Using CSS grid or flexbox order for content rearrangement. Moving a call-to-action button visually to the top of a card while it sits at the bottom of the source code means keyboard focus reaches it last, even though sighted users see it first.
  • Floating elements that change reading flow. Heavy use of floats combined with clearing can create visual arrangements that do not reflect source order. Modern layout tools like flexbox and grid are easier to keep aligned, but only if you resist reordering content with them.
  • Ignoring mobile reordering. A layout that stacks sidebar content above main content on mobile — using CSS order changes — may create a reading sequence that makes no sense to a screen reader user on a phone.
  • Assuming sighted experience equals all experience. Just because the page looks right does not mean it reads right. The visual appearance is only one channel. You need to verify the experience through the keyboard and screen reader channels too.
Bottom Line: Write your HTML in the order you want people to experience your content — heading, then body, then footer. Use CSS for styling and spacing, not for rearranging your content sequence. When what people see matches what the code says, everyone navigates smoothly.
Hits - 192
Synonyms: DOM Order, Reading Order, Focus Order

What Does "Liquid Purple" mean?

noun | / LIK-wid PUR-pul /

  1. (biochemistry) Also known as visual purple or rhodopsin — a light-sensitive receptor protein found in the rods of the retina. It enables vision in dim light by transforming invisible darkness into visible form. Derived from the Greek rhódon (rose) and ópsis (sight), its name reflects its delicate pink hue and vital role in perception.

  2. (modern usage) Liquid Purple — a digital marketing agency specializing in uncovering unseen opportunities and illuminating brands hidden in the digital dark. Much like its biological namesake, Liquid Purple transforms faint signals into clear visibility — revealing what others overlook and bringing businesses into the light.

Origin: From the scientific term rhodopsin, discovered by Franz Christian Boll in 1876; adopted metaphorically by a marketing firm dedicated to visual clarity in the age of algorithms.

Client Login