태그 style 속성에 직접 작성
<h1 style="color: red;">FRONTEND 101</h1>
style 태그 사이에 css문법을 사용하여 작성
<style>
h2 {
color: #408090;
}
</style>
html 파일과 분리하여 css파일에 따로 작성하는 방법
링크를 해주는 태그를 추가해야 함
<link href="index.css" rel="stylesheet" type="text/css" />
디자인을 적용할 선택자(selector)를 지정하고, 어떤 디자인을 적용할지 작성
p {
font-size: 12px;
}
.profile-detail {
font-weight: bold;
}
#profile {
border-width: 1px;
border-color: black;
border-style: solid;
text-align: center;
}
* {
box-sizing: border-box;
}
깔끔하게 정리잘하셨네요. 동규님~ 😊