color : <색상>
<html>
<head>
<meta charset="utf-8">
<style>
h1 {color: rbg(0,200,0); }
h2 {color:blue;}
.accent {}
</style>
</head>
<body>
<h1>세계 10대 슈퍼푸드</h1>
<h2>마늘의 일해백리</h2>
<p>마늘 특유의 아린 맛은 알리신
<span class="accent">알리신</span>이라는 성분 때문으로
</p>
</body>
</html>
text-decoration: none | underline | overline | line-through
속성
<html>
<head>
<meta chartset="utf-8">
<style>
p { line-height: e1.8; }
a { text-decoration: none; }
.edited { text-decoration: line-through; }
</style>
</head>
<body>
<p>다양한 기기로 인터넷에 접속할 수 있다.</p>
<span class="edited">위 아래 가로지르기</span>
<a href="https://www.naver.com" target="_blank">네이버</a>
</body>
</html>
text-transform: none | capitalize | uppercase | lowercase | full-width
속성
<html>
<head>
<meta charset="utf-8">
<style>
.cap { text-transform: capitalize; }
.upper { text-transform: uppercase; }
.lower { text-transform: lowercase; }
.full{ text-transform: full-width; }
</style>
</head>
<body>
<p class="cap">Hello World!!!</p>
<p class="upper">Hello World!!!</p>
<p class="lower">Hello World!!!</p>
<p class="full">Hello World!!!</p>
</body>
<html>
text-shadow : none | <가로거리> <세로거리> <번짐정도> <색상>
속성
<html>
<head>
<meta charset="utf-8">
<style>
.letter1 { letter-spacing: 0.2em; }
.letter2 { word-spacing: 0.5em; }
</style>
</head>
<body>
<p class="letter1">오늘도 좋은 하루를 보내셨나요? 좋은 밤 되세요.</p>
<p class="letter2">오늘도 좋은 하루를 보내셨나요? 좋은 밤 되세요.</p>
</body>
</html>
[CSS 기초] 문단 스타일 (2) (0) | 2021.04.21 |
---|---|
[CSS 기초] 문단 스타일 (1) (0) | 2021.04.20 |
[CSS 기초] 글꼴 관련 스타일 (2) (0) | 2021.04.16 |
[CSS 기초] 글꼴 관련 스타일 (1) (0) | 2021.04.15 |
[CSS 기초] 주요 선택자 (0) | 2021.04.13 |
댓글 영역