--- id: 5f45b25e7ec2405f166b9de1 title: Step 81 challengeType: 0 dashedName: step-81 --- # --description-- You change properties of a link when the link has actually been visited by using a pseudo-selector that looks like `a:visited { propertyName: propertyValue; }`. Change the color of the footer `Visit our website` link to be `grey` when a user has visited the link. # --hints-- You should use the `a:visited` pseudoselector. ```js const hasAVisited = new __helpers.CSSHelp(document).getStyle('a:visited'); assert(hasAVisited); ``` You should set the `color` property to `grey`. ```js const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => (x.style.color === 'grey' || x.style.color === 'gray')); assert(hasColor); ``` Your `a:visited` should have a `color` of `grey`. ```js const aVisitedColor = new __helpers.CSSHelp(document).getStyle('a:visited')?.getPropertyValue('color'); assert(aVisitedColor === 'grey' || aVisitedColor === 'gray'); ``` # --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; } a { color: black; } --fcc-editable-region-- --fcc-editable-region-- ```