style
ex)
<div style="background-color: black">
ex)
<h1 style="color: white">
<div style="background-color: black; color: white">
ex)
<body style="font-family: sans-serif, Arial, AppleGothic">
ex)
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Poppins:wght@400;600&display=swap" rel="stylesheet">
ex)
font-size: 20px
ex)
font-weight: 300
ex)
text-align: center
center, right, left
ex)
style="width: 700px; height: 375px"
style="width: 100%;"
(%를 사용하면 웹브라우저의 크기에 따라 이미지의 크기가 변한다)
이미 태그에 background-color가 설정되어 있다면 아래에 div태그를 추가하여 거기에 설정해준다
ex)
padding: 20px auto
(세로 20px, 가로 자동)
margin: 32px
line-height 줄 높이
따로 단위 없이 쓰는 글자 크기에 상대적인 값
ex) line-height: 1은 font-size가 16px이라면 16px1 = 16px이 되고
line-height: 1.5는 16px1.5 = 24px이다
text-decoration 텍스트 꾸미기
텍스트에 밑줄을 넣거나, 취소선 등을 넣을 때 사용
none은 a태그에 기본으로 들어간 밑줄을 없애는데 많이 사용
underline은 밑줄
line-through는 취소선 등을 나타낼때 사용