ways to indicate CSS styles in your HTML code example
Example 1: 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 2: css in html
<div class="your_class" style="display:none">
Example 3: CSS IN HTML
<h1 style="color: red;">Red Heading</h1>
<style>
h1 {
color: red;
}
</style>
<h1>Red Heading</h1>
<link rel="stylesheet" href="[stylesheet link]">
Example 4: how to css html
<html>
<head>
<style>
body{
direction:rtl;
}
</style>
</head>
<body>
</body>
</html>