Computer >> 컴퓨터 >  >> 프로그램 작성 >> CSS

CSS를 사용하여

와 같은 특정 요소 선택

<시간/>

요소를 선택하려면 요소 선택기를 사용하십시오. 다음 코드를 실행하여

요소를 선택할 수 있습니다.

예시

<!DOCTYPE html>
<html>
   <head>
      <style>
         p {
            color: blue;
            background-color: orange;
         }
      </style>
   </head>
   <body>
      <h1>Demo Website</h1>
      <h2>Learning</h2>
      <p>Tutorials on web dev, programming, database, networking, etc.</p>
      <p>Every tutorials has lessons with illustrations and figures.</p>
   </body>
</html>