# CSS error: “Your a elements should not have any text decorations” even after removing it

**URL:** <https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615>\
**Category:** General\
**Created:** [April 22, 2026, 6:53am UTC](https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615 "2026-04-22T06:53:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcosasosa757](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcosasosa757/32/414235_2.png) [@marcosasosa757](https://forum.freecodecamp.org/u/marcosasosa757)\
**Post date:** [April 22, 2026, 6:53am UTC](https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615/1 "2026-04-22T06:53:31Z")

</div>

**Title:**  
CSS error: “Your `a` elements should not have any text decorations” even after removing it

**Body:**  
I’m getting this error:

> “Your `a` elements should not have any text decorations”

I already tried removing `text-decoration` from my `a` styles, but the error still shows up.

Here’s my CSS:

```auto
/* paste your CSS here */

```

And my HTML:

```auto
<!-- paste your HTML here -->

```

I also checked for other `a {}` rules but I might be missing something.

What could be causing this error, and how can I fix it?

Thanks!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [April 22, 2026, 8:00am UTC](https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615/2 "2026-04-22T08:00:40Z")

</div>

it’s difficult to help, your CSS and HTML are only a comment

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [April 22, 2026, 9:44am UTC](https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615/3 "2026-04-22T09:44:55Z")

</div>

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the **Help** button located on the challenge.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/9/e/5/9e5d03b4b54808931538e1c967c26d4fe89eb76a.png)

The **Help** button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [May 20, 2026, 9:45am UTC](https://forum.freecodecamp.org/t/css-error-your-a-elements-should-not-have-any-text-decorations-even-after-removing-it/786615/4 "2026-05-20T09:45:42Z")

</div>

Closed on May 20, 2026, 9:45am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
