Help us fix this page
If you found a broken link, missing page, or incorrect redirect, please let us know. Your report helps us improve the website for everyone.

Web accessibility is a fundamental requirement for modern digital products. More than a billion people globally live with some form of disability, meaning that inaccessible websites exclude a significant portion of the population. Beyond legal mandates, accessibility is essential for inclusivity, improved user experience, and business success.
This guide covers web accessibility through the lens of native HTML elements, ARIA roles and attributes, screen readers, colour accessibility, and the current legal framework in Slovakia and the European Union.
Web accessibility ensures that websites and digital services are usable by everyone, regardless of their abilities. This includes people with visual, auditory, physical, speech, cognitive, language, learning, and neurological disabilities.
Accessibility directly impacts SEO, usability, and mobile responsiveness. A website that follows accessibility guidelines naturally has semantic structure, better navigation, and more readable content-all of which benefit search engine rankings.
European Accessibility Act (EAA) – Directive (EU) 2019/882
The EAA has been applicable since 28 June 2025. It establishes harmonised accessibility requirements for a range of products and services across the EU.
Key requirements under the EAA:
Slovak Act No. 351/2022 Coll.
Slovakia transposed the EAA through Act No. 351/2022 Coll. on the accessibility of products and services for persons with disabilities.
Key provisions:
Exemptions:
| Version | Status | Application |
|---|---|---|
| WCAG 2.1 | Current standard | Legal reference for EAA (via EN 301 549 v3.2.1) |
| WCAG 2.2 | W3C Recommendation | Emerging benchmark; 9 new success criteria added |
| WCAG 3.0 | Working Draft (March 2026) | Incomplete; will change substantially-do not use for compliance |
The current legal reference is EN 301 549 v3.2.1, which aligns with WCAG 2.1 Level AA. A new version aligned with WCAG 2.2 is expected in October 2026.
WCAG success criteria are divided into three levels:
The most effective way to ensure accessibility is to use native HTML elements. These elements are designed to be accessible out of the box, working seamlessly with assistive technologies like screen readers.
| Element | Purpose | ARIA Equivalent (Avoid) |
|---|---|---|
<main> | Primary content of the page | role="main" |
<header> | Introductory content or navigation | role="banner" |
<footer> | Footer of the page or section | role="contentinfo" |
<nav> | Navigation links | role="navigation" |
<aside> | Complementary content (sidebars) | role="complementary" |
<article> | Self‑contained, independent content | (No ARIA equivalent needed) |
<section> | Thematic grouping of content | role="region" |
Using main instead of div role=”main” ensures that assistive technologies can quickly locate the primary content. The <header>, <footer>, <nav>, and <aside> tags provide clear semantic markup that is inherently understood by browsers and assistive technologies.
Native HTML form elements-<button>, <input>, <label>, <select>, <textarea>-come with built‑in keyboard and focus management. For example, a button responds correctly to keyboard interactions (Enter and Space keys) without additional JavaScript.
<header>
<a href="/" rel="home">My Awesome Website Logo</a>
<nav aria-label="Primary navigation">
<!-- Navigation links -->
</nav>
</header>
<main>
<article>
<h1>My Awesome Article Main Title</h1>
<section>
<h2>Article Section Title</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<section>
<h3>Article Sub‑section Title 1</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</section>
<section>
<h3>Article Sub‑section Title 2</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</section>
</section>
</article>
<aside>
<h2>Table of Contents</h2>
<nav aria-label="Table of Contents">
<!-- Table of contents links -->
</nav>
</aside>
</main>
<footer>
<!-- Footer content -->
</footer>ARIA (Accessible Rich Internet Applications) helps describe elements and their behaviours to assistive technologies when native HTML elements cannot be used. However, if a native HTML element is available, prioritise using it-ARIA should be used judiciously.
| Role Category | Purpose | Examples |
|---|---|---|
| Document structure | Structural description of content | toolbar, tooltip, presentation |
| Widget roles | Interactive elements | slider, tab, treeitem, switch |
| Landmark roles | Identify important sections | banner, complementary, main, navigation, search |
| Live region roles | Dynamic content changes | alert, log, status, timer |
| Window roles | Sub‑windows within the document | alertdialog, dialog |
| Abstract roles | For internal browser use only | Do not use in HTML |
Note: Many landmark roles are now redundant because modern browsers support semantic HTML elements that convey the same meaning. Use header instead of role="banner", main instead of role="main", and nav instead of role="navigation".
ARIA states and properties communicate the current state or relationships of elements to assistive technologies.
Common ARIA attributes:
| Attribute | Purpose |
|---|---|
aria-label | Provides an accessible label when no visible text is available |
aria-labelledby | References an element that provides the label |
aria-describedby | References an element that provides a description |
aria-expanded | Indicates whether a collapsible element is expanded |
aria-hidden | Hides an element from assistive technologies |
aria-live | Announces dynamic content changes to screen readers |
aria-required | Indicates that a form field is required |
aria-invalid | Indicates that a form field has an error |
Screen readers are software that assist blind and visually impaired users by reading webpage content aloud. Popular screen readers include:
<h1> to <h6>) – do not skip levels:focus outlines without providing an alternativeColour accessibility is critical for people with colour vision deficiencies (colour blindness). Designers should avoid relying solely on colour to convey meaning and ensure sufficient contrast between text and background elements.
| Text Type | Minimum Contrast Ratio |
|---|---|
| Normal text | 4.5:1 |
| Large text (18pt or 14pt bold) | 3:1 |
Tools for checking contrast ratios:
Colour should not be the only method of conveying information. For example, an error message should not depend solely on the colour red-include icons, text labels, or patterns.
<!-- Bad: relies only on colour -->
<span style="color: red;">Invalid email address</span>
<!-- Good: includes text and an icon -->
<span role="alert">
<span aria-hidden="true">⚠️</span>
Invalid email address
</span>Use simulators to see how your website appears to people with different types of colour blindness:
| Law | Applicability | Requirements |
|---|---|---|
| European Accessibility Act (EAA) | All businesses serving EU consumers (excluding micro‑enterprises for services) | Compliance with EN 301 549 / WCAG 2.1 AA |
| Web Accessibility Directive | Public sector websites and mobile apps | Compliance with EN 301 549 / WCAG 2.1 AA |
| Law | Applicability | Penalties |
|---|---|---|
| Act No. 351/2022 Coll. | All businesses providing covered services to consumers in Slovakia | Up to €30,000 + corrective measures |
| Act No. 95/2019 Coll. | Public administration websites | Compliance with WCAG 2.1 AA |
Enforcement in Slovakia is carried out by the Slovak Trade Inspection (SOI) and relevant sector bodies.
| Tool | Purpose | Platform |
|---|---|---|
| WAVE | Visual accessibility evaluation | Browser extension, website |
| Axe DevTools | Automated WCAG testing | Browser extension (Chrome, Firefox, Edge) |
| Lighthouse | Accessibility + performance + SEO | Chrome DevTools |
| NVDA | Screen reader testing | Windows (free) |
| VoiceOver | Screen reader testing | macOS, iOS |
| Colour Contrast Analyser | Contrast ratio measurement | Desktop application |
Prioritise semantic HTML elements. Tags like <main>, <header>, <article>, <section>, <nav>, <button>, and <label> are inherently accessible.
Ensure all non‑text content has a text alternative: alt text for images, captions for videos, and transcriptions for audio.
Use ARIA only when necessary. Native HTML elements should be used whenever possible.
All interactive elements should be operable with a keyboard. Test using the Tab key to ensure:
Automated tools catch only a portion of accessibility issues. Testing with users who rely on assistive technologies provides critical insights.
Ensure all text has sufficient contrast against its background. Use automated tools to check contrast ratios.
Include closed captions for all video content. Ensure captions are synchronised and accurately reflect spoken dialogue and important sounds.
Use descriptive link text that provides context. Instead of “Click here to learn more,” use “Learn more about our accessibility services.”
Ensure all <input> fields have corresponding <label> elements.
<label for="email">Email Address:</label>
<input type="email" id="email" name="email">After interactions (form submissions, modal closures), ensure focus shifts appropriately to meaningful elements.
Creating accessible websites is a fundamental responsibility for developers and designers. By using native HTML elements, applying ARIA roles appropriately, accommodating screen readers, and ensuring adequate colour contrast, we can make the web accessible to everyone.
The legal landscape has become significantly more demanding. The European Accessibility Act has been in force since June 2025, and Slovakia has implemented it through Act No. 351/2022 Coll. with substantial penalties for non‑compliance. WCAG 2.2 is emerging as the new benchmark, though the legal reference remains WCAG 2.1 for now.
Accessibility should be integrated into the development process from the start, not added as an afterthought. Proper implementation enhances user experience, expands your audience, ensures legal compliance, and contributes to a more inclusive web.
Need help making your website accessible? Playful Sparkle has been engineering digital products since 2004, offering UI/UX & Web Design, Web Development, and accessibility consulting services. Our team can help you audit and improve your website’s accessibility to meet WCAG 2.2 standards and comply with the European Accessibility Act and Slovak Act No. 351/2022 Coll. Contact us to discuss how we can help you create a more inclusive digital experience.