Answers for "write the CSS styling inside the HTML page"

CSS
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
3

how to style in html file

<p style="text-align: center; color: pink;">Hello World</p>
Posted by: Guest on May-14-2020
0

write the CSS styling inside the HTML page

<!DOCTYPE html>
<head>
  <style>
    /* Your Style Goes Here*/
    .my-div{
      background-color: #f00'
    }
  </style>
</head>
<html>
  <body>
    
  </body>
</html>
Posted by: Guest on June-14-2021

Code answers related to "write the CSS styling inside the HTML page"

Browse Popular Code Answers by Language