inline styling html code example

Example 1: how to link css to html

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

Example 2: add stylesheet html

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

Example 3: how to link css to html

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

Example 4: how to write css in html

<p style="color: blue; font-size: 46px;">

Example 5: css how to style a

/*a normal, unvisited link*/
a:link{
	color: green;
}
/*a link the user has visited*/
a:visited{
	color: purple;
}
/*a link when the user mouses over it*/
a:hover{
	color: yellow;
}
/*a link the moment it is clicked*/
a:active{
	color: brown;
}

Example 6: how to add css to html

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

Tags:

Css Example