link to css code example

Example 1: css link

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

Example 2: external style sheet

<link rel="stylesheet" type="text/css" href="mystyle.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 css file in html

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

Example 5: how to link css to html

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

Example 6: how to link your css file to html

<head>
	<link rel='stylesheet' href='style.css'>
</head>