Skip to content

Invalid alt attribute on <a> elements in About Us speaker links #92

@alexwolson

Description

@alexwolson

Summary

The About Us page uses alt="..." on an <a> element, which is not a valid HTML attribute for anchor elements. It has no effect and also contains a typo (speark.title instead of speaker.title).

Affected location

_pages/about-us.md:43

<a href="{{speaker.url}}" alt="{{speark.title}}"><h4>{{ speaker.title }}</h4></a>

Fix

Remove the invalid alt attribute. The link already contains a visible <h4> with the speaker's name, which serves as the accessible name for the link. No replacement attribute is needed.

<a href="{{speaker.url}}"><h4>{{ speaker.title }}</h4></a>

Note: wrapping a heading in an <a> is valid HTML and a common pattern. The heading text becomes the link's accessible name automatically.

WCAG criterion

4.1.1 Parsing (Level A)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions