필굿스토리

 

u 태그를 사용하여 텍스트에 밑줄 긋기

텍스트에 밑줄을 긋기 위해 u 태그를 사용할 수 있습니다. 이것은 텍스트의 한 부분이 중요하거나 기억해야 할 부분을 나타낼 때 자주 사용됩니다. u 태그를 사용하여 브라우저는 CSS의 text-decoration: underline;를 요소에 적용합니다.

 


 

<Ph.D students> 텍스트 주위에만 u 태그를 감쌉니다.

참고: 링크와 혼동될 수 있는 경우 u 태그를 사용하지 마십시오. 앵커 태그에는 기본 밑줄 서식도 있습니다.

 

 

<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>Google</h4>
      <p>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</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>

공유하기

facebook twitter kakaoTalk kakaostory naver band