-4

Text inside <a> tag is blue and underlined. How to switch it off? I use JSX.

Ivar
  • 6,138
  • 12
  • 49
  • 61
Vad
  • 13
  • 5

1 Answers1

0

This is a pretty simple question. All you need to do is add CSS on the tag.

text-decoration: none;
color: black;

& if you want to use it in React it can go in the style tag like so

style={{
textDecoration: 'none',
color: 'black'}}
Amanda
  • 239
  • 1
  • 5
  • That CSS is invalid. – Quentin Dec 23 '21 at 20:28
  • @Quentin how? not sure how this doesn't answer the question. – Amanda Dec 23 '21 at 20:41
  • @Quentin ye it does, as to why I put the second part, because I mixed css and jsx styling together. also i did correct the error AFTER i commented (which stack overflow also tracks) and i just didnt go back and edit my comment. Also you could've had a more helpful comment *shrugs* – Amanda Dec 23 '21 at 20:49