Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between "a" and "a:link"

What is the difference between a and a:link, and when do I use one over the other?

like image 524
lovespring Avatar asked Apr 28 '12 03:04

lovespring


People also ask

What is the difference A and 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.

What is the difference between A and a link in CSS?

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

What is the difference between A and link element in HTML?

<a> is the html element used to display an hypertext reference link (clickable anchor) in <body> part (content) of the page, while <link> is used in <head> part (document meta informations) to link an external ressource file to the document... Wow, awesome community.

What's the difference between link and a tag?

The anchor tag <a> is used to create a hyperlink to another webpage or to a certain part of the webpage and these links are clickable, whereas, link tag <link> defines a link between a document and an external resource and these are not clickable.


1 Answers

a:link is specifically for links that have not been visited. a applies to all <a> elements.

like image 187
John Conde Avatar answered Sep 30 '22 04:09

John Conde