# Info and Relationships: Structure in the Code

Source: https://allyway.ai/glossary/info-and-relationships

Info and Relationships is WCAG success criterion 1.3.1: information, structure and relationships conveyed through presentation can be programmatically determined or are available in text.

Info and Relationships is the WCAG rule that the structure people see on a page must also be in the code. A bold line that looks like a heading, dots that look like a list, a grid that looks like a table – if they are only styled that way, a screen reader announces plain text and the structure is lost. [Semantic HTML](https://allyway.ai/glossary/semantic-html) keeps it available, whatever way the content is presented.

## What it means

[WCAG 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html) is a Level A criterion in [WCAG 2.2](https://allyway.ai/regulations/wcag-2-2). Information, structure and relationships conveyed through presentation must be programmatically determinable or available in text. W3C names the typical structures:

| Shown visually as … | Needs in the code |
|---|---|
| Large or bold heading text | `<h1>`–`<h6>`, see [heading structure](https://allyway.ai/glossary/heading-structure) |
| Bullets or numbers with indentation | `<ul>`, `<ol>`, `<dl>` |
| Rows and columns with headers | `<table>`, `<th>` with `scope` or `headers` |
| Text next to a form field | `<label>`, groups in `<fieldset>` with `<legend>` |
| Page regions (header, menu, main content) | Landmarks, see [ARIA landmarks](https://allyway.ai/glossary/aria-landmarks) |
| Emphasized words | `<strong>`, `<em>` or a text cue |
| Required fields marked in red | A text or programmatic cue such as "Required" |

The goal: when the presentation changes – a screen reader reads the page aloud, a braille display shows it, or someone applies their own style sheet – the meaning stays intact. Where a technology cannot express a relationship in code, a text description is acceptable. Information given by color alone is covered by [use of color](https://allyway.ai/glossary/use-of-color) (1.4.1).

> **Tip:** > **Native HTML first**
> Real HTML elements carry their meaning automatically. A `<button>`, `<table>` or `<ul>` needs no extra attributes. Use ARIA roles only where no native element fits.

Who benefits: [screen reader](https://allyway.ai/glossary/screen-reader) users can jump between headings, hear "list, 5 items" or which column a table cell belongs to. Deaf-blind people using braille get the same structure. People who change fonts, colors or spacing keep the logic of the page.

## Examples

```html title="Example"
<!-- Fails: looks like a heading and a list, but is plain text -->
<p class="big-bold">Opening hours</p>
<p>• Monday–Friday: 9–18</p>
<p>• Saturday: 10–14</p>

<!-- Passes: the structure is in the markup -->
<h2>Opening hours</h2>
<ul>
  <li>Monday–Friday: 9–18</li>
  <li>Saturday: 10–14</li>
</ul>
```

Both versions look the same. Only the second tells a screen reader that this is a heading followed by a list of two items. W3C lists the opposite problem as a failure too: using structural markup, such as a `<blockquote>` for indentation or `<th>` in a layout table, where it does not represent the content.

**Do:** Do

Use headings, lists and [data tables](https://allyway.ai/glossary/accessible-tables) for what they are, connect every field to its label, group radio buttons with `fieldset` and `legend`, mark page regions with landmarks, and write "Required" next to required fields.

**Don't:** Don't

Fake headings with bold text, build lists with typed bullet characters, lay out tables with spaces or `<pre>`, use `role="presentation"` on content that carries meaning, or mark required fields with color only.

## How to check info and relationships



## Questions

Q: What does info and relationships mean in WCAG?
A: It is success criterion 1.3.1: structure and relationships that people see – headings, lists, tables, labels, groups – must also be expressed in the code or in text. Then screen readers and other tools can present the same structure.

Q: Which errors fail 1.3.1 most often?
A: Fake headings made of bold text, form fields without connected labels, data tables without header cells, lists built from typed characters, and required fields marked only by color. Several of them appear in W3C's failures for 1.3.1, for example F2 (changes in text presentation used to convey information) and F91 (table headers not marked up correctly).

Q: Is semantic HTML required for WCAG?
A: WCAG does not require a specific technology, but on websites semantic HTML is the most direct way to meet 1.3.1. W3C's sufficient techniques include `h1`–`h6` for headings, `ul`, `ol` and `dl` for lists, table markup for data and `label` for form fields.

Q: Does every page need landmarks to meet 1.3.1?
A: W3C lists ARIA landmarks as one sufficient technique for identifying page regions. Landmarks such as `header`, `nav`, `main` and `footer` are the usual way to make the visible layout of a page available in code.

Q: How is 1.3.1 related to the European Accessibility Act?
A: 1.3.1 is Level A, so it is part of every WCAG level referenced by [EN 301 549](https://allyway.ai/regulations/en-301-549) and the [European Accessibility Act](https://allyway.ai/regulations/eaa). Structure problems are among the first things to fix.
