1. 내부 style 태그를 직접 사용

<style>
    h1 {
        속성: 속성값;
    }
</style>

<h1>contents</h1>
  • HTML 파일 내부에서 style을 여러 곳에 적용할 때 사용

2. inline style (HTML element 내부에 사용) (최우선으로 적용!)

<tfoot style="속성: 속성값;">contents</tfoot>
  • 간단한 style 정보를 적용할 때 사용

3. 외부 css file을 연결

<link rel="stylesheet" href="x.css">
  • 별도 파일로 저장해놓아 페이지 로드 시간을 줄일 때 사용