link css html code example

Example 1: add stylesheet html

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

Example 2: css link

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

Example 3: add css to an html file

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

Example 4: link style css to html

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

Example 5: add css file in html

/*
Adding css file into html document
*/

<link rel="stylesheet" type="text/css" href="yourstylesheetname.css">  /* add this line into head tag of the file with change in file name. */

/*
I hope it will help you.
Namaste
*/

Example 6: 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; }