Working with hr

Working with hr
0

#1

Tell us what’s happening:

Having issue with hr tag. I followed the instructions, did put it between the tittle and paragraph but its still not working

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-a-horizontal-line-using-the-hr-element


#2

There is a known bug with this challenge.

I would skip this challenge and come back later. I would also just use <hr> instead of <hr/> because it’s a self-closing tag.


#3

Thank you. Though it doesn’t allow me to continue


#4

You can just hit curriculum tab on top right and navigate to your next challenge.


#5

Ohh Got it.:grinning::grinning: thanks


#6

Sooner or later someone will tell you a workaround to get the test to pass. Please don’t use it, it is invalid HTML. Just wait until they fix the site, though it may take a while. I’m waiting too & don’t like the gap in my progress but I’m sure they’ll have fixed it before I get to claiming any certificates. :slight_smile:


#7

You do not have to complete these challenges to claim certificates. You only need to complete the projects.


#8

I missed that! Thank you for explaining. Though I do actually want to get through all of the challenges first. I’m learning quite a bit. :slight_smile: