Freecodecamp: Test failing in: Applied Visual Design: Create a Horizontal Line Using the hr Element

Created on 28 Jul 2018  Â·  59Comments  Â·  Source: freeCodeCamp/freeCodeCamp

Describe your problem and - if possible - how to reproduce it

Second part of test is failing, incorrectly stating that "The hr tag should come between the title and the paragraph." although actually


tag is already placed and displayed in results view as it should be.

Add a Link to the page with the problem

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

Tell us about your browser and operating system

  • Browser Name: Chrome
  • Browser Version: Version 67.0.3396.99 (Official Build) (64-bit)
  • Operating System: Mac OS

If possible, add a screenshot here

image

Most helpful comment

Try to switch you <p><em> tag like this.. This work for me..

fix solution

Hope it helps, for someone who want to pass this test..

All 59 comments

I can confirm I am having this problem too. Been talking about it on the forum here - https://forum.freecodecamp.org/t/create-a-horizontal-line-using-the-hr-element-is-this-bug/212450/6

Seems like a recent problem...

Also seems that for others that has completed this challenge it still passes for them.

Same issue for me too.

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

About browser:
Browser Name: Chrome
Browser Version: 67.0.3396.99 (Official Build) (32-bit)
Operating System: Windows 10

Here is screenshot
error issues

Similiar issue I'm facing

applied_visual_design__create_a_horizontal_line_using_the_hr_element___learn_freecodecamp

Same Here, I wonder if i can skip this task?

Same here.

I have the same problem, using firefox.
@yohanisgobai it can be skipped and go onto the next challenge.

same issue, using chrome.

i am also having same issue

I am also having the same issue. It made me feel better to see I wasn't going crazy with this simple task.

Same issue in Chrome

Same here, tried it a bizillion times, good to see I'm not the only one.

Try to switch you <p><em> tag like this.. This work for me..

fix solution

Hope it helps, for someone who want to pass this test..

@asheavenist That solution worked for me! Thanks!

@asheavenist That solution worked for me as well, which is funny since I threw the emphasis tag around the paragraph in Use the em Tag to Italicize Text and it made me move them inside

. Thanks

@asheavenist thanks its worked :+1:

@asheavenist Awesome. It works.

and

switch worked!

@asheavenist thanks for bringing the solution, while i still have motivation to learn fcc

Thank you very much! It worked, and now I can sleep.

On Sun, Jul 29, 2018 at 9:19 PM, asheavenist notifications@github.com
wrote:

Try to switch you

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/17944#issuecomment-408720872,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AnP_W2VSYM2weLkFR471YxKKkFT17e03ks5uLl8KgaJpZM4Vk-Xj
.

Did not work for me. My em and p were in the correct order, to begin with.

Switching the 'em' tag to enclose the 'p' tag worked for me too

Thanks much, @asheavenist ! Now I can continue to the next challenge. XD

@asheavenist thanks bro! U r a genious 💃

I moved the em to before the p tag and all is working now thank you

Getting it to pass is one thing, but is that really the intention?

Users are going to get stuck here, and it can be very demotivating when it will say it is wrong when it is correct. Maybe can you swap the tags for the default script when starting this challenge?

@povilasraciunas I am attempting to solve this issue. I anticipate finding a solution tonight. Atm, I am stumped as to how swapping the em and p tags could pass the test as that does not fit the regex at all. This would be my first pull request and with the changes made recently to the structure of the repos ( moving challenges from /seed to the curriculum repo) without updating the contributing instructions is giving me some confusion as well.

@joeslost The contributing of curriculum can be found in docs of curriculum repo. Here’s the link

https://github.com/freeCodeCamp/curriculum/blob/dev/docs/CONTRIBUTING.md

Also you’ll find the format of each challenge in the same folder.
Even I didn’t understand how changing em and p is fixing the issue as it doesn’t match the regex.

Hi Joe, thank you! Yeah, that "trick" of putting em tags outside to make
the test pass was interesting :)
Of course, it is not a big deal for me as I move on with other challenges,
but still wanted to report it as fcc is really great place for such
beginners like myself and I want to contribute at least by reporting bugs :)

On Wed, Aug 1, 2018 at 2:06 PM Joe Andersen notifications@github.com
wrote:

@povilasraciunas https://github.com/povilasraciunas I am attempting to
solve this issue. I anticipate finding a solution tonight. Atm, I am
stumped as to how swapping the em and p tags could pass the test as that
does not fit the regex at all. This would be my first pull request and with
the changes made recently to the structure of the repos ( moving challenges
from /seed to the curriculum repo) without updating the contributing
instructions is giving me some confusion as well.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/17944#issuecomment-409536371,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANPcbM5Jx7jWBQPIRRo5LuMedKoSgJY1ks5uMYvJgaJpZM4Vk-Xj
.

--
Pagarbiai

Povilas RačiĆ«nas

@asheavenist Alright, thanks to a friend that told me to research my ass. I found your post and it works so thanks to you too. #FREECODECAMPFIXPLSILIEKU

Awesome! For those completists that don't want a skipped lesson on their conscience! Me...

thanks to you, it works....

Now I feel my soul can be in peace

Still an issue on 08/06/2018; asheavenist fix helped move on. Thanks!

Thank you @asheavenist!

Thank you @asheavenist it works!

Thanks you @asheavenist!

Was stuck on this challenge for quite an hour until I searched it up!

FINALLY! Thank you 👍 @asheavenist

https://forum.freecodecamp.org/t/bug-in-applied-visual-design-create-a-horizontal-line-using-the-hr-element/212910/4

The above post brought me here. Definitely frustrating and hope it gets fixed soon! FCC is so beginner friendly that this contradicting bug makes it difficult to trust the course content. With that said, this has been such a great resource that I'm merely commenting here to report that I ran into the same issue and felt frustrated.

Thanks for all you do!

I wanted to create a PR for this but it looks like is already fixed on staging, can someone confirm?

@goncy Yep, the issue was fixed here: https://github.com/freeCodeCamp/curriculum/pull/189.

The reason the issue still occurs is because the UI has not been updated to use the latest curriculum version. They were broken up into separate components and the UI needs to import the curriculum in order to use it. The fix for this issue is in the curriculum version 3.1.2, while the UI is still using version 3.1.1.

exact same thing still happening to me.
screen shot 2018-08-19 at 4 43 03 pm

Tried the solution from a comment above saying to put the em tags outside of the p tags, and it worked. Thank you! :]

Thank you! Switching the tags 'p' and 'em' worked for me also!

I can confirm also that the workaround is to switch the tags 'p' and 'em' like below:

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

despite the fact that the right solution should be as follow:

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

Yep! Switching tags 'p' and 'em' is working :) Thanks guys!

Switching tags word for me too

.....

Thank you! Switching the tags 'p' and 'em' worked for me too!

Glad I follow the direction: "When you get stuck, remember: Read-Search-Ask"
read the documentation or error
Search Google
Ask for help

search google is definitely the way to go!!! yeah

For future visitors, this issue is already resolved but not yet deployed to the production platform, for passing the test you can just do https://github.com/freeCodeCamp/freeCodeCamp/issues/17944#issuecomment-408720872

I think this issue can be closed

@asheavenist Thanks!! it worked for me

How did someone figure out that switching other tags would fix this? Glad it's a workaround and I found it. There is nothing more annoying to me than having that one incomplete problem in the lists of problems

@asheavenist Thank you

@asheavenist - would you mind explaining how you figured out this solution?

Hey guys wanted to let everyone know you are doing it right, but you have to switch the em element with the p element. I put ** buy the corrections so you guys can see. Scroll down just past your


.cardText {
margin-bottom: 30px;
}

Alphabet


**

**Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.**

**

Why is no-one pointing out that the “workaround” is invalid HTML? How many new coders will now think that it’s perfectly OK to nest p tags within em tags because it was suggested here _and_ passed the “test” on here?

Why is no-one pointing out that the “workaround” is invalid HTML? How many new coders will now think that it’s perfectly OK to nest p tags within em tags because it was suggested here _and_ passed the “test” on here?

They are addressing it, see here:
https://github.com/freeCodeCamp/curriculum/pull/189
Valid point though.

Why is no-one pointing out that the “workaround” is invalid HTML? How many new coders will now think that it’s perfectly OK to nest p tags within em tags because it was suggested here _and_ passed the “test” on here?

They are addressing it, see here:
freeCodeCamp/curriculum#189
Valid point though.

Thank you for the link, I'd missed that one. It's nice to see the updates.

Looks like this just got fixed. It passes for me now with the correct code. :)

Can someone close this issue as it has been fixed?

Was this page helpful?
0 / 5 - 0 ratings