How to use the HTML <style> element to define style for HTML page

1 Answer

0 votes
<!DOCTYPE html>
<html>
<head>
  <style>
    body {background-color: black;}
    h1 {color: yellow;}
    p {color: green;}
  </style>
</head>  
<body>

<h1>Text Title</h1>
<p>Text text text</p>
  
</body>
</html>

 



answered Dec 27, 2018 by avibootz
...