Bad Practices for Websites
Analysis of critical web design mistakes. Why sliders, autoplay audio, and heavy pages reduce conversion rates and rankings on Google and Yandex
14
2 min.

131
2 min.
The SSA standard defines requirements for the semantics, accessibility, and logic of accordions.
Accordion elements in this standard are called spoilers. Spoilers can be separate entities from accordions, but they are rarely used separately.
The basis is a <ul> list, which ensures that screen readers and search robots will perceive a group of spoilers as a single list of related elements.
Each spoiler contains <details>, inside which the order is strictly defined:
<ul class="ssa-accordion"> <li class="ssa-spoiler"> <details class="ssa-spoiler__details" name="faq"> <summary class="ssa-spoiler__summary"> <h3 class="ssa-spoiler__title">Текст триггера</h3> <span class="ssa-spoiler__icon" aria-hidden="true"></span> </summary> <div class="ssa-spoiler__content"> </div> </details> </li> </ul>
The
nameattribute allows you to create accordions in which only one spoiler can be opened, provided that the value innameis the same for all spoilers.
The trigger is the entire <summary> element. Its clickable area should be as large as possible for ease of use on mobile devices.
.ssa-spoiler__summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; } /* Hiding the system marker */ .ssa-spoiler__summary::-webkit-details-marker { display: none; } .ssa-spoiler__icon { flex-shrink: 0; inline-size: 24px; block-size: 24px; transition: rotate 0.3s ease-in-out; /* This can be a background-image or SVG. */ } .ssa-spoiler__details[open] .ssa-spoiler__icon { rotate: 180deg; }
aria-hidden=“true”is always added to icons, as they serve a decorative function, and screen readers read the “open/closed” status directly from the<details>tag.
The user should instantly understand that an element is active or selected.
The SSA standard implies three types of feedback:
<summary> when hovering.:focus-visible..ssa-spoiler__summary:hover { background-color: rgb(0 0 0 / 5%); } .ssa-spoiler__details[open] .ssa-spoiler__summary { background-color: #f8f9fa; border-block-end: 1px solid #eee; }
Analysis of critical web design mistakes. Why sliders, autoplay audio, and heavy pages reduce conversion rates and rankings on Google and Yandex
14
2 min.
The SSP standard defines requirements for the semantics, accessibility, and logic of page-by-page navigation
108
1 min.
The SSPS standard defines requirements for the structure and naming of files and folders in a project
67
2 min.
The SSV standard defines requirements for semantics, background and interactive video settings, attributes for Safari, accessibility rules, and video weight
102
4 min.
Solves problems with Vite working when VPN is enabled, connection settings, to avoid redirecting local traffic to the VPN tunnel
92
2 min.