Answers for "how to write css in html tag"

CSS
4

style.css in html

put in the <header> tag:

<link rel="stylesheet" href="style.css">
Posted by: Guest on May-02-2021
14

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;
}
Posted by: Guest on May-14-2020
2

css in html

<!-- EXAMPLE -->
<div class="your_class" style="display:none">

<!--[SYNTAX: style="<CSS-code>"] -->
Posted by: Guest on February-25-2021

Code answers related to "how to write css in html tag"

Browse Popular Code Answers by Language