Home>

CSS is not applied to the image set in html.
It applies to id = "myname" with the same ID, but why doesn't it apply to id = "icon"?

CSS is not applied to the icon image, and borders and rounded corners cannot be set.

Corresponding source code
! DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<meta name = "viewport" content = "width = device-width, initial-scale = 1.0">
<title>Self-introduction page</title>
<link rel = "stylesheet" href = "css/style.css">
</head>
<body>
<header>
    
      
    <span>My name is ●●</span>
    
  <nav>
    <ul>
      <li>Home</li>
      <li>Twitter</li>
      <li>Facebook</li>
      <li>Instagram</li>
    </ul>
  </nav>
</header>
  
     Self-introduction 
    
    
  
<footer>
  <p>&copy;2020 urumya</p>
</footer>

</body>
</html>


CSS

* {
  padding: 0;
  margin: 0;
}
header {
  background-image: url (../images/bg-sea.jpg);
  background-size: cover;
}
#icon {
  width: 150px;
  border: solid white;
  border-radius: 10%;
}
#myname {
  color: white;
  font-size: 40px;
  font-weight: bold;
  text-shadow: 2px 2px 1px black;
}