How to have multiple styles for <a>? (solved) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to have multiple styles for <a>? (solved)

how can I have links have multiple styles? my code included. https://code.sololearn.com/W8zVacN05t5p/?ref=app

30th Jun 2018, 12:33 PM
Dylan J. Walker
Dylan J. Walker - avatar
2 Answers
+ 6
Hello, Dylan J. Walker ! In order to install several styles, use classes, you can do it like this: .style1 { color:red; } .style2 { text-decoration:none; } <a href='http://link.com' class= 'style1 style2'>link</a>
30th Jun 2018, 12:41 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
Alexander Sokolov worked it out! a { color: #000000; font-weight: 300; text-decoration: none; } a.normal{ font-style: normal; }
30th Jun 2018, 12:45 PM
Dylan J. Walker
Dylan J. Walker - avatar