헤더 태그의 글꼴 크기(h1 ~ h6)는 일반적으로 단락 태그의 글꼴 크기보다 커야 합니다. 이를 통해 사용자는 페이지에 있는 모든 항목의 레이아웃과 중요성 수준을 시각적으로 쉽게 이해할 수 있습니다. font-size 속성을 사용하여 요소의 텍스트 크기를 조정합니다.
제목을 단락보다 훨씬 크게 만들려면 h4 태그의 글꼴 크기를 27픽셀로 변경합니다.
<style> h4 { text-align: center; background-color: rgba(45, 45, 45, 0.1); padding: 10px; font-size: 27px; } 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>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>
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.