--- id: 5f45b0731d39e15d54df4dfc title: Step 79 challengeType: 0 dashedName: step-79 --- # --description-- Il colore predefinito di un link che non è stato ancora cliccato è blu. Invece, il colore predefinito di un link che è già stato visitato da una pagina è viola. Per rendere il link nel `footer` dello stesso colore indipendentemente dal fatto che sia stato visitato, usa un selettore di tipo per l'elemento di ancoraggio (`a`) assegnando il valore `black` alla proprietà `color`. # --hints-- Dovresti usare un selettore `a`. ```js const hasASelector = new __helpers.CSSHelp(document).getStyle('a'); assert(hasASelector); ``` Dovresti assegnare alla proprietà `color` il valore `black`. ```js const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.color === 'black'); ``` L'elemento `a` dovrebbe avere una proprietà `color` con il valore `black`. ```js const aColor = new __helpers.CSSHelp(document).getStyle('a')?.getPropertyValue('color'); assert(aColor === 'black'); ``` # --seed-- ## --seed-contents-- ```html Cafe Menu ``` ```css body { background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg); font-family: sans-serif; padding: 20px; } h1 { font-size: 40px; } h2 { font-size: 30px; } .established { font-style: italic; } h1, h2, p { text-align: center; } .menu { width: 80%; background-color: burlywood; margin-left: auto; margin-right: auto; padding: 20px; max-width: 500px; } hr { height: 2px; background-color: brown; border-color: brown; } .bottom-line { margin-top: 25px; } h1, h2 { font-family: Impact, serif; } .item p { display: inline-block; margin-top: 5px; margin-bottom: 5px; font-size: 18px; } .flavor, .dessert { text-align: left; width: 75%; } .price { text-align: right; width: 25% } /* FOOTER */ footer { font-size: 14px; } --fcc-editable-region-- --fcc-editable-region-- ```