How do you use the <hr> tag

Tell us what’s happening:

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><s>Google</s>Alphabet</h4>>
    <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>

Your browser information:

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

Challenge: Create a Horizontal Line Using the hr Element

Link to the challenge:

Hello and welcome @Swarajsm,
<hr> is one of many self-closing tags. That means you don’t need to close it. Applying an hr is pretty easy. The challenge asks you to put it underneath the tag <h4>. So you just need to put <hr> underneath it. It will make this line:


by underneath do you mean, in the <h4 tag?

thanks just figured it out

By underneath, it means below the tag that it asks for, so below the <h4>

1 Like

yeah thanks! newbie here