영상
개념
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#test1{
text-decoration: none
}
#test2{
text-decoration: underline
}
#test3{
text-decoration: overline
}
#test4{
text-decoration: line-through
}
</style>
</head>
<body>
<h1>text-decoration 속성1</h1>
<p id="test1">none</p>
<p id="test2">underline</p>
<p id="test3">overline</p>
<p id="test4">line through</p>
<!-- 간단한 속성은 아래와 같이 한줄로 표현도 가능하다. -->
<h1>text-decoration 속성2</h1>
<p style="text-decoration:none">none</p>
<p style="text-decoration:underline">underline</p>
<p style="text-decoration:overline">overline</p>
<p style="text-decoration:line-through">line through</p>
</body>
</html>
HTML
복사