--- id: 6144e818fd5ea704fe56081d title: Step 28 challengeType: 0 dashedName: step-28 --- # --description-- Assegna a ogni `fieldset` un attributo `name` adeguato. Quindi, dai a entrambi gli elenchi non ordinati un attributo `class` di `answers-list`. Infine, usa l'elemento `legend` per sottotitolare il contenuto del `fieldset` inserendo una domanda vero/falso come contenuto testuale. # --hints-- Dovresti assegnare al primo `fieldset` un attributo `name` adeguato. _Suggerimento: userei `html-question-one`_ ```js assert.notEmpty(document.querySelectorAll('fieldset')?.[0]?.name); ``` Dovresti assegnare al secondo `fieldset` un attributo `name` adeguato. _Suggerimento: userei `html-question-two`_ ```js assert.notEmpty(document.querySelectorAll('fieldset')?.[1]?.name); ``` Dovresti assegnare al primo elemento `ul` un attributo `class` di `answers-list`. ```js assert.equal(document.querySelectorAll('fieldset > ul')?.[0]?.className, 'answers-list'); ``` Dovresti assegnare al secondo elemento `ul` un attributo `class` di `answers-list`. ```js assert.equal(document.querySelectorAll('fieldset > ul')?.[1]?.className, 'answers-list'); ``` Il primo elemento `legend` dovrebbe contenere del testo. ```js assert.notEmpty(document.querySelectorAll('legend')?.[0]?.textContent); ``` Il secondo elemento `legend` dovrebbe contenere del testo. ```js assert.notEmpty(document.querySelectorAll('legend')?.[1]?.textContent); ``` I due elemento `legend` non dovrebbero contenere lo stesso testo. ```js assert.notEqual(document.querySelectorAll('legend')?.[0]?.textContent, document.querySelectorAll('legend')?.[1]?.textContent); ``` # --seed-- ## --seed-contents-- ```html Accessibility Quiz

HTML/CSS Quiz

Student Info

--fcc-editable-region--

HTML

1

2

--fcc-editable-region--

CSS

``` ```css body { background: #f5f6f7; color: #1b1b32; font-family: Helvetica; margin: 0; } header { width: 100%; height: 50px; background-color: #1b1b32; display: flex; } #logo { width: max(100px, 18vw); background-color: #0a0a23; aspect-ratio: 35 / 4; padding: 0.4rem; } h1 { color: #f1be32; font-size: min(5vw, 1.2em); } nav { width: 50%; max-width: 300px; height: 50px; } nav > ul { display: flex; justify-content: space-evenly; } h1, h2 { font-family: Verdana, Tahoma; } h2 { border-bottom: 4px solid #dfdfe2; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } ```