1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html>
<head>
<title>id/class example</title>
<meta charset="utf-8">
<style>
.big-blue-text {
font-size: 64px;
color: blue;
}
.centered-text {
text-align: center;
}
</style>
</head>
<body>
<h1 class="centered-text">Heading 1</h1>
<h2 class="big-blue-text centered-text">Heading 2</h2>
<p>첫 번째 문단</p>
<p>두 번째 문단</p>
<p class="big-blue-text">세 번째 문단</p>
<p>네 번째 문단</p>
</body>
</html>
|
class를 사용하면 여러 요소들에게 같은 스타일을 입힐 수 있고 한 요소에 다양한 스타일을 입힐 수 있다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE html>
<html>
<head>
<title>id/class example</title>
<meta charset="utf-8">
<style>
.big-blue-text {
font-size: 64px;
color: blue;
}
.centered-text {
text-align: center;
}
#best-text{
color: orange;
}
</style>
</head>
<body>
<h1 class="centered-text">Heading 1</h1>
<h2 class="big-blue-text centered-text">Heading 2</h2>
<p id="best-text">첫 번째 문단</p>
<p>두 번째 문단</p>
<p class="big-blue-text">세 번째 문단</p>
<p>네 번째 문단</p>
</body>
</html>
|
class와 id 의 차이점
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!-- class -->
<p class="big-text">문단 1</p>
<p>문단 2</p>
<p class="big-text">문단 3</p>
<p>문단 4</p>
<!-- 중복 클래스 가능 -->
<!-- id -->
<p id="best-text">문단 1</p>
<p>문단 2</p>
<p id="best-text">문단 3</p>
<p>문단 4</p>
<!-- 중복 아이디 불가능 -->
<!-- 틀린 코드 -->
<!-- class -->
<p class="big blue">문단 1</p>
<p>문단 2</p>
<p>문단 3</p>
<p>문단 4</p>
<!-- 여러 클래스 가능 -->
<!-- id -->
<p id="best first">문단 1</p>
<p>문단 2</p>
<p>문단 3</p>
<p>문단 4</p>
<!-- 아이디 하나만 가능 -->
<!-- 틀린 코드 -->
|
여러 요소를 스타일링 하고 싶으면? => class
한 요소만 스타일링 하고 싶으면? => id
HTML 요소에게 '이름'을 주는 방법은 두 가지가 있다.
(미리 배우는 우선 순위: html코드의 태그 속에 직접적으로 스타일을 선언하는 inline style이 가장 우선순위가 높고 id, class, tag 순서대로 우선순위가 결정된다.)
<div>
태그<!DOCTYPE html>
<html>
<head>
<title>My Favorite Movies</title>
<meta charset="utf-8">
<style>
h1 {
text-align: center;
margin-top: 75px;
margin-bottom: 75px;
}
.movie {
background-color: #eee;
border-radius: 20px;
margin-bottom: 50px;
padding: 50px;
width: 500px;
margin-left: auto;
margin-right: auto;
}
.movie .title {
text-align: center;
}
.movie .poster {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 40px;
margin-bottom: 40px;
}
}
</style>
</head>
<body>
<h1>My Favorite Movies</h1>
<div class="movie">
<h2 class="title">
Eternal Sunshine of the Spotless Mind
</h2>
<img class="poster" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUSExMVFRUVFxoYFxcYFxcXGhkYGhoaGBgXGhcYHSggGBolHRcXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OFxAQGC0fHR8rLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLSstLS0tKystLSstLS02LTQrLS0rLf/AABEIAREAuQMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAFAgMEBgcBAAj/xABLEAABAwIDBAUIBQkGBQUAAAABAAIRAyEEEjEFQVFhBiJxgZEHEzKhscHR8BQjQnPxFVJUYnKSstLhCCQlU2PCFzM1gqIWNEOT0//EABgBAAMBAQAAAAAAAAAAAAAAAAABAgME/8QAIxEAAgICAgMBAQEBAQAAAAAAAAECERIxAyETMlFBIgTwFP/aAAwDAQACEQMRAD8A1/aWONNwAi43/iov5VqTo3wPxSdvvh7OYPtUPNC3hFNaMZNphH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f0Kr+9S/nXj5Ndq/oVT96l/OlkgGdj7cpMwxo1HPuTLQxxablzSSKjZvG60Kd/6hw25z7AAE0iTxuTWumB5NNq/oVX96l/Olf8NNrfoVT9+l/Oi0FC39IsORAL4Ov1RHeCK08LKsY6q11RxYIbutFoA0kx4lWQeTPa36E/9+j/ADpQ8mW1v0J//wBlH/8ARK0FBfyEf9UH3FX2sX0csR8kXQvH4TaArYjDOpU/NPbmL6busS2BDXE7ituUSfYxK8vLygDoXl5eSEeXFxeVDFLi4vIAUvLy8gZ5JXl5AHWry8vIEcSl5eQBwrwXl5ACl5eXkAcK8vLyBHEpeXkDP//Z">
내용1
</p>
</div>
<div class="movie">
<h2 class="title">
The Truman Show
</h2>
<img class="poster" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUSExMWFhUXGB8bGRgYGBsaHhsaGB0dFxcaGBcfHSggGholHR0XITEiJSkrLi4uFyAzODMtNygtLisBCgoKDg0OGxAQGy0lHyUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIARIAuAMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAEBgMFAAIHAQj/xABHEAACAQIEAwUDCQUGBQQDAAABAhEAAwQSITEFQVEGEyJhcTKBkRQjQmKhscHR8AdScpLhFSQzgqLxFjSTstJTVGPCJUNE/8QAGQEAAwEBAQAAAAAAAAAAAAAAAAEDAgQF/8QAKhEAAgICAgEDBAAHAAAAAAAAAAECEQMSITFBBCJRE2GB8CMyQmKhsdH/2gAMAwEAAhEDEQA/AOrhq9zVooPwobjONGHsXsRlzd1bZ8sxORS0TymK7GciQSTWyNUPebHqAfjrQnE+J913QjN3l1bfSM8+LziNqb6EWRetgaC+UTQHFO0lvDXrdu6ItujO12fDbCsqAuOSksBm5EiazLhDSsviKidoqq4Dx8YoXiLbILd3uwG3YZEuBsv0ZDjQ61Y99PKiINHr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B8AKETYbBs3MzEHQadTXuGwjMRHnJI26SKNbBRBzL6HTf8dqLSFyw/B37dhGNu4rkgSCIllmdmHUipl4xcKx8wM45OQQInSW3HnVXhrFtC4uKuYDZtgRvlbYk6GBUb4qyHDBSfz9NqRqy54fxm9h7aWkeyMrl2bMCWJA0Yz7Igaf0qr4kXv37jhVm4S3g9lcxkwZiP6VF8sDNC21EnWSB8PPWdamu8UcDIEVPONztO1AXfBp/ZLiJy+ub8Bp1rKK7+9BlUkCCC2vUlVgbyOfKspWx0iow2p110H3CvY8XvH3CsrK2TIL429PxNRzqPf+NZWUCJ1UQNPpVCaysoGb2dvj9xqEHxH1/GsrKBElw6x51PhRJb3fadaysoGRjZ/QVGfa9wrKygDxN/j9xovhJ+c9351lZQCDrVsZ9hz5edS4gVlZWTaJbRiyjDQ94RI3iDzoO8M2K8XikjfX6IrKyoLuX5KvpfgKxA+YbyAj+alv6R9aysqmLpk8vaLjhY8N09AsfGt0ObNm8UGNddOleVlaYvABdY96RNeVlZWibZ//2Q==">
<p class="summary">
내용2
</p>
</div>
</body>
</html>
묶어주고 싶은 요소를 <div>
태그로 감싸준다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<html>
<head>
<title>내 소개</title>
<meta charset="utf-8">
<!-- link태그를 이용하여 연결할 css파일 설정 -->
<link href="test_css.css" rel="stylesheet">
</head>
<body>
<h1>코드잇</h1>
<h2>안녕하세요!</h2>
<img src="Cogi.png">
<a href="work.html">작품</a>
<a href="hobby.html">취미</a>
</body>
</html>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
body {
text-align: center;
}
h2 {
color: gray;
}
img{
height: 300px;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
margin-bottom: 50px;
}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<html>
<head>
<title>내 소개</title>
<meta charset="utf-8">
<link href="test_css.css" rel="stylesheet">
</head>
<body>
<!-- style 속성을 쓰고 css 코드를 적어주면 바로 적용 가능 -->
<h1 style="color: red; font-size: 72px;">코드잇</h1>
<h2>안녕하세요!</h2>
<img src="Cogi.png">
<a href="work.html">작품</a>
<a href="hobby.html">취미</a>
</body>
</html>
|
일반적으로 가장 많이 쓰이는 방법은 외부 css 파일을 만들고 link 태그로 연결해주는 것이다.
<h>
태그에 직접 넣어 확인해보고 <style>
태그에 넣어 사용하다 마지막에 css 파일에 추가한다.
HTML 코드에 스타일을 입히는 방법에는 세 가지가 있다.
<style>
태그
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<style>
h1 {
color: green;
text-align: center;
}
p {
font-size: 18px;
}
</style>
<h1>Hello World!</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet lorem sit amet nunc ornare convallis. Pellentesque ac posuere lectus. In eu ipsum et quam finibus fermentum vitae sit amet magna.</p>
|
style
속성
1
2
|
<h1 style="color: green; text-align: center;">Hello World!</h1>
<p style="font-size: 18px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet lorem sit amet nunc ornare convallis. Pellentesque ac posuere lectus. In eu ipsum et quam finibus fermentum vitae sit amet magna.</p>
|
<link>
태그
1
2
3
4
5
6
7
8
9
|
/* css/styles.css */
h1 {
color: green;
text-align: center;
}
p {
font-size: 18px;
}
|
1
2
3
4
|
<link href="css/styles.css" rel="stylesheet">
<h1>Hello World!</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet lorem sit amet nunc ornare convallis. Pellentesque ac posuere lectus. In eu ipsum et quam finibus fermentum vitae sit amet magna.</p>
|
일반적으로는 외부 CSS 파일에 스타일을 쓰고 HTML 코드에서 <link>
태그로 연결해주는 것이 가장 좋은 방식이다. 하지만 조금씩 새로운 스타일을 시도해볼 때에는 간편함을 위해서 <style>
태그를 쓰는 방법 또는 style 속성에서 테스트를 하고, 나중에 외부 CSS 파일로 옮기는 방법도 있다.
<HTML/CSS 시작하기> (0) | 2020.02.27 |
---|
댓글 영역