Dino Geek, try to help you

How to style a link with CSS?


To style a link with CSS, you can target the `a` tag (which defines a hyperlink):

```
a { color: blue; text-decoration: none;
}
```
In this example, all links will be blue and will not be underlined.

You may also want to style links depending on their states (e.g. when the cursor hovers over them, when the link is active, when the link is visited). Hence, you can use the :link, :visited, :hover, and :active pseudo-classes in CSS:

```
/* unvisited link */
a:link { color: blue;
}

/* visited link */
a:visited { color: purple;
}

/* mouse over link */
a:hover { color: red;
}

/* selected link */
a:active { color: yellow;
}
```
In this example, the link will be blue by default, purple if it has been visited before, red when the mouse hovers over it, and yellow when it is being clicked or selected.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use