--- id: 614206033d366c090ca7dd42 title: Step 17 challengeType: 0 dashedName: step-17 --- # --description-- Typeface plays an important role in the accessibility of a page. Some fonts are easier to read than others, and this is especially true on low-resolution screens. Change the font for both the `h1` and `h2` elements to `Verdana`, and use another web-safe font in the sans-serif family as a fallback. Also, add a `border-bottom` of `4px solid #dfdfe2` to `h2` elements to make the sections distinct. # --hints-- You should use a multiple element selector to target the `h1` and `h2` elements. ```js const gs = (s) => new __helpers.CSSHelp(document).getStyle(s); assert.exists(gs('h1, h2') || gs('h2, h1')); ``` You should set the first value of the `font-family` property to `Verdana`. ```js const gs = (s) => new __helpers.CSSHelp(document).getStyle(s); const style = gs('h1, h2') || gs('h2, h1'); assert.include(style?.fontFamily, 'Verdana'); ``` You should set the second value of the `font-family` property to another sans-serif, web safe font. _Hint: I would choose Tahoma_. ```js // Acceptable fonts: Arial, sans-serif, Helvetica, Tahoma, Trebuchet MS. const gs = (s) => new __helpers.CSSHelp(document).getStyle(s); const style = gs('h1, h2') || gs('h2, h1'); assert.match(style?.fontFamily, /(Tahoma)|(Arial)|(sans-serif)|(Helvetica)|(Trebuchet MS)/); ``` You should use an `h2` element selector to target the `h2` elements. ```js assert.exists(new __helpers.CSSHelp(document).getStyle('h2')); ``` You should give `h2` a `border-bottom` property of `4px solid #dfdfe2`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('h2')?.borderBottom, '4px solid rgb(223, 223, 226)'); ``` # --seed-- ## --seed-contents-- ```html Accessibility Quiz

HTML/CSS Quiz

Student Info

HTML

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; } --fcc-editable-region-- --fcc-editable-region-- ```