Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a vs a:link, What is the difference?

What is the differences between a {...} and a:link{...}?

Are there different usages, and benefits between them?

like image 432
Jitendra Vyas Avatar asked Dec 17 '09 15:12

Jitendra Vyas


People also ask

What is the difference between A and a link?

The <link> element appears in the <head> of a HTML document, and could have all the same attributes. The difference between a <link> and <a> is that a <a> may contain text and usually appears in a document, whereas the <link> element doesn't have content.

Why is the link tag A?

The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

Is link and a tag the same?

These are two different things. The anchor element is used to link to another page or to a certain part of the page if you use its ID. And The link tag defines a link between a document and an external resource. The link tag is used to link to external style sheets.


1 Answers

According to W3C a:link is for not visited, a:visited is for visited, and just a applies to both.

like image 183
Sander Rijken Avatar answered Sep 30 '22 13:09

Sander Rijken