Use the strong Tag to Make Text Bold 4

Tell us what’s happening:

Hello guys am i missing something here ?Stanford University.

but i received such an error The strong tag should wrap around the words “Stanford University”.

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 Ph.D. students 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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36.

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

1 Like

I know, that lesson is strange, you need to remove the period in the strong tags, that has to be outside it.

The challenge asked you to make the “Stanford University” bold, not “Stanford University.”, notice that extra dot in the end. So, it’s not about the strong tag, but it’s about the requirement that the challenge asked for.

1 Like

Considering we see this question come up about three times a week, maybe the challenge should just accept if the period is bolded too. Or maybe change it to just bold “Stanford”.

There was a PR for this, the instruction now says “do not include the period” (this won’t take effect until the site is updated).

Guys, I have just run the test and the problem was there should be no full stop present either within the strong tag or outside the strong tag

The full stop must be outside the strong tag. Happy coding.

1 Like

no full stop, you can try yourself.

There should be a dot because that is the correct way to end a sentence.

However, the punctuation is not tested for, so it will pass either way, as long as the dot is not inside the strong element.

assert($('strong').text().match(/^Stanford University$/gi)