link style html code example

Example 1: css link

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

Example 2: link style css to html

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

Example 3: 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 4: 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 
-->

Example 5: linking in css

<p><a href>.css</a></p>

Tags:

Css Example