수평선이 문자를 가로지르는 경우 텍스트를 취소선으로 표시하려면 s 태그를 사용할 수 있습니다. 텍스트 섹션이 더 이상 유효하지 않음을 나타냅니다. s 태그를 사용하여 브라우저는 CSS의 요소에 line-through text-decoration를 적용합니다.
h4 태그 안에 Google을 s 태그로 묶은 다음, 취소선 형식이 없어야 하는 Alphabet이라는 단어를 그 옆에 추가합니다.
<style> h4 { text-align: center; height: 25px; } p { text-align: justify; } .links { text-align: left; color: black; } .fullCard { width: 245px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 5px; padding: 4px; } .cardContent { padding: 10px; } .cardText { margin-bottom: 30px; } </style> <div class="fullCard"> <div class="cardContent"> <div class="cardText"> <h4><s>Google</s> Alphabet</h4> <p><em>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</em></p> </div> <div class="cardLinks"> <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br> <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a> </div> </div> </div>
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.