To change the color of the inline text, targets the CSS selector “a”
To remove underline from a link with CSS, ADD text-decoration: none to your code.
For example, to remove underline for all links on all pages, use this CSS code:
a {
text-decoration: none;
color: black;
}
This code targets the CSS selector “a”, which selects all HTML tags <a> - the ones used for links, and adds the CSS text-decoration: none and color: black to remove the underline and set a fixed color to the links.
반응형
'CSS' 카테고리의 다른 글
[CSS] CSS 선택자 (0) | 2023.12.12 |
---|---|
[CSS] CSS 선언 방식, Types of CSS (0) | 2023.12.09 |
[CSS] 브라우저 스타일 리셋,초기화_CSS reset (0) | 2023.11.30 |
[CSS] To remove underline / dots from a link (0) | 2023.11.15 |
[CSS] 인라인(글자) VS 블럭(상자) 요소 (0) | 2023.11.15 |