0

<!DOCTYPE html>
<html lang="en">
    
    <style type="text/css">
        @import url(style.css);
    </style>
<body>
    
   <h1 title = "planet">Earth</h1>
   <h1 title = "planet">Venus</h1>
   <h1 title = "planet">Mars</h1>

</body>
</html>

when i hover over Earth, i get planet. But how do i change planet's color (title attribute ) to red using CSS? I did some research and found a similar question on stackoverflow, (How can I change the title color in an html page?) but i doesn't seem to solve the problem.

  • Why are you using `@import` in a ` – Dai Oct 04 '20 at 10:18
  • @Dai we can use use `link` as well, but i learning how to use `@import` to get `style.css` –  Oct 04 '20 at 10:24

0 Answers0