css link code example

Example 1: css link

<link href="main.css" rel="stylesheet">

Example 2: text underline hover css

a:hover {
  text-decoration: underline;
}

Example 3: link style css to html

<link rel="stylesheet" type="text/css"href="style.css">

Example 4: css a link style

a:link { /* unvisited link */ color: #000; text-decoration: none; border: none; }
a:visited { /* visited link */ color: #000; }
a:hover { /* mouse over link */ color: #000; border: none; }
a:active { /* active link */ color: #000; }

Example 5: link css file in html

<link rel="stylesheet" href="styles.css">

Example 6: link html

<!-- this is a link tag -->

<link rel="" href="">
<!-- href is the location of your external ressource 
	
list of rel used with a link tag (popular) : 
	- stylesheet (css)
	- alternate
	- author
	- external 
	- incon
	- index 
-->

Tags:

Html Example