U Tag coding challenge

Hey guys… this is very simple but I don’t understand why it doesn’t let me go forward, I need to warp with u tag
“Ph.D. students”. I don’t know what I’m doing wrong?

Your code so far


<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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text

Looks like you’ve accidentally added a new line after “Ph.D.”

Remove the new line so that Ph.D. students is all on one line and the test should pass.

Thanks umbauk,:smile: I tried that but still doesn’t work. I don’t know what I’m doing wrong.

Weird, I did it the same was as you and it passed.

//actually, copying your example from 1st post gave an error. Make sure to not make any breaks and just add the tags (reset the chhallenge)

You have a line break there, remove it and add a space.

<p>
    Google was founded by Larry Page and Sergey Brin while they were
    <u>Ph.D. students</u>
    at <strong>Stanford University</strong>.
</p>

It went through!! many thanks,:hugs: just reset it and did it again.

1 Like

Thanks for helping me! finally i managed to get it right.:smile: