Inferensys

Glossary

Divitis

A colloquial anti-pattern describing the excessive and exclusive use of semantically neutral <div> and <span> elements, resulting in a flat, meaningless document structure that hinders AI content extraction and accessibility.
Developer reviewing semantic search engine results on laptop, relevance scores visible, technical search demo.
SEMANTIC ANTI-PATTERN

What is Divitis?

A colloquial term describing the excessive and exclusive use of semantically neutral <div> and <span> elements to structure an HTML document, resulting in a flat, meaningless document outline that hinders AI content extraction and accessibility.

Divitis is a web development anti-pattern where authors rely solely on the generic <div> and <span> elements—which carry no intrinsic semantic meaning—instead of using appropriate semantic HTML elements like <nav>, <article>, <section>, or <aside>. This practice creates a flat DOM structure devoid of programmatic determinism, forcing AI parsers and search engine crawlers to guess at content hierarchy and relationships rather than extracting them from explicit, machine-readable landmarks.

The primary consequence of divitis is severely degraded semantic extraction, as AI models cannot reliably identify content categories, heading hierarchies, or landmark regions within a document composed entirely of neutral containers. This anti-pattern directly undermines generative engine optimization by obscuring entity relationships and factual grounding signals, making it impossible for retrieval-augmented generation systems to confidently cite or summarize the content.

ANTI-PATTERN IDENTIFICATION

Core Characteristics of Divitis

Divitis is a colloquial anti-pattern describing the excessive and exclusive use of semantically neutral <div> and <span> elements, resulting in a flat, meaningless document structure that hinders AI content extraction and accessibility.

01

Semantic Flatness

The defining characteristic of Divitis is a document object model (DOM) composed almost entirely of <div> and <span> elements. These elements are inherently semantically neutral—they convey no programmatic meaning about the content they contain. An AI parser encountering a page built with Divitis cannot distinguish a navigation landmark from an article body or a footer, as every structural block is an identical, meaningless container. This forces extraction algorithms to rely on fragile, class-name-based heuristics rather than the robust, standardized accessibility tree.

02

Class-Name Dependency

To compensate for the lack of native semantics, developers with Divitis rely entirely on CSS class names (e.g., class="header", class="article") to convey meaning. This approach is fundamentally brittle because:

  • Class names are not standardized and vary wildly between projects and teams.
  • AI crawlers and search engines do not parse CSS class names as reliable semantic signals.
  • The meaning is only apparent to human developers reading the source code, not to machines. This creates a semantic gap between developer intent and machine interpretation.
03

Accessibility Tree Degradation

The browser constructs an accessibility tree from the DOM to expose content to assistive technologies and programmatic agents. Divitis starves this tree of meaningful roles. Without elements like <nav>, <main>, <article>, or <aside>, the accessibility tree becomes a monolithic block of generic containers. Screen readers lose the ability to offer landmark navigation, and AI agents cannot efficiently skip to relevant content regions. Remediation requires manually patching every <div> with ARIA roles (e.g., role="navigation"), which duplicates the function of native HTML elements.

04

Heading Hierarchy Collapse

Divitis often correlates with a broken or non-existent heading hierarchy. When all content is wrapped in <div> elements, developers may use visual styling (bold, larger font-size) to simulate headings rather than using <h1> through <h6> elements. This practice is catastrophic for AI content extraction because:

  • Heading elements are the primary mechanism for AI models to understand document outline and content importance.
  • Without a proper hierarchy, the document appears as an undifferentiated wall of text.
  • Retrieval-augmented generation (RAG) systems rely on heading structure for accurate chunking and retrieval.
05

Remediation: First Normal Form

The cure for Divitis is achieving First Normal Form (1NF) for the DOM, a concept borrowed from database normalization. This involves replacing generic <div> elements with the correct semantic HTML5 equivalents:

  • <div class="header"><header>
  • <div class="nav"><nav>
  • <div class="content"><main>
  • <div class="post"><article>
  • <div class="sidebar"><aside>
  • <div class="footer"><footer> This transformation provides programmatic determinism, ensuring AI agents and accessibility tools can reliably interpret document structure.
06

Impact on Generative Engine Optimization

Divitis directly undermines Generative Engine Optimization (GEO) efforts. AI models constructing answers from retrieved content prioritize documents with clear, machine-parseable structure. A page suffering from Divitis presents a low signal-to-noise ratio to AI crawlers, as every content block appears structurally identical. This reduces the likelihood of:

  • Accurate entity extraction for knowledge graph injection.
  • Successful semantic chunking for RAG system retrieval.
  • High-confidence citation in AI-generated overviews. The absence of semantic landmarks makes it difficult for answer engines to isolate and cite specific facts from the page.
DIVITIS EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the semantic anti-pattern of excessive <div> and <span> usage.

Divitis is a colloquial anti-pattern describing the excessive and exclusive use of semantically neutral <div> and <span> elements to structure an entire HTML document, resulting in a flat, meaningless DOM structure. It is a problem for AI because these elements carry zero native semantics; a <div> conveys no information about its role, content type, or relationship to other nodes. When an AI parser or Retrieval-Augmented Generation (RAG) system encounters a document riddled with Divitis, it cannot programmatically distinguish a navigation block from an article body, a footer, or an aside. This forces the model to rely solely on visual heuristics or fragile class name guessing, dramatically reducing semantic extraction accuracy and increasing the risk of misattributed facts or hallucinated summaries. The document becomes an undifferentiated soup of text, stripping the AI of the structural context it needs for confident entity disambiguation and factual grounding.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.