- include CSS file
- CSS 파일 임포트
- CSS 파일 인클루드
1 방법[ | ]
html
Copy
<link rel="stylesheet" type="text/css" href="파일경로" />
2 예시[ | ]
style
태그 안쪽 내용을 css 파일로 분리하고, 대신 link
태그로 그 css가 연결되도록 설정해준다.
- HTML
html
Copy
<!DOCTYPE html>
<meta charset="utf-8" />
<head>
<title>CSS 예제 2</title>
<link rel="stylesheet" type="text/css" href="/css/ex002.css" />
</head>
<body>
<p>내용</p>
</body>
- CSS
css
Copy
p {font-size:50px; color:#ace; font-weight:bold}
3 같이 보기[ | ]
4 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.