web study

마우스 이벤트 mouse event 본문

web/css

마우스 이벤트 mouse event

nayeon web 2023. 1. 10. 13:33
<!DOCTYPE html>
<html lang="ko">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  <title>color 연습</title>
  <style>
    h1 {
      color: red;
      font-weight: bold;
    }

    h1>span {
      color: cornflowerblue;
    }

    ul li a {
      color: orange;
      font-size: 24px;
      font-weight: 700;
      text-decoration: none;
    }

    ul li a:hover {
      background-color: orange;
      color: black;
    }
  </style>
</head>

<body>
  <h1><span>마우스 이벤트</span> mouse event</h1>
  <ul>
    <li><a href="#">네이버</a> </li>
    <li><a href="#">다음</a> </li>
    <li><a href="#">구글</a> </li>
  </ul>
</body>

</html>
color 연습

마우스 이벤트 mouse event

'web > css' 카테고리의 다른 글

font와 text의 여러 특성들  (0) 2023.01.10
배경색 background-color  (0) 2023.01.10
글자 색상 color  (0) 2023.01.10