--- id: 6144e818fd5ea704fe56081d title: Step 28 challengeType: 0 dashedName: step-28 --- # --description-- Give each `fieldset` an adequate `name` attribute. Then, give both unordered lists a `class` of `answers-list`. Finally, use the `legend` to caption the content of the `fieldset` by placing a true/false question as the text content. # --hints-- You should give the first `fieldset` an adequate `name` attribute. _Hint: I would use `html-question-one`_ ```js assert.notEmpty(document.querySelectorAll('fieldset')?.[0]?.name); ``` You should give the second `fieldset` an adequate `name` attribute. _Hint: I would use `html-question-two`_ ```js assert.notEmpty(document.querySelectorAll('fieldset')?.[1]?.name); ``` You should give the first `ul` element a `class` of `answers-list`. ```js assert.equal(document.querySelectorAll('fieldset > ul')?.[0]?.className, 'answers-list'); ``` You should give the second `ul` element a `class` of `answers-list`. ```js assert.equal(document.querySelectorAll('fieldset > ul')?.[1]?.className, 'answers-list'); ``` You should give the first `legend` element text content. ```js assert.notEmpty(document.querySelectorAll('legend')?.[0]?.textContent); ``` You should give the second `legend` element text content. ```js assert.notEmpty(document.querySelectorAll('legend')?.[1]?.textContent); ``` You should not use the same text content for both `legend` elements. ```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; } ```