French Vanilla
3.00
--- 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