hr 태그를 사용하여 포함하는 요소의 너비에 가로줄을 추가할 수 있습니다. 이것은 주제의 변경을 정의하거나 콘텐츠 그룹을 시각적으로 구분하는 데 사용할 수 있습니다.
카드 제목이 포함된 h4 아래에 hr 태그를 추가합니다.참고 : HTML에서 hr은 자체 닫는 태그이므로 별도의 닫는 태그가 필요하지 않습니다.
<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> <hr> <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>
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.