Random Quote Machine test keeps failing

Tell us what’s happening:

My code keeps failing the 3rd test, which checks if there is an element with id=“author” included inside the broader element “quote-box”. As far as I can tell it should work, but it keeps failing for some reason I cannot figure out…
I know this isn’t very complicated so I’m just confused why it isn’t working.

Challenge: Build a Random Quote Machine

Link to the challenge:

inspect element will help

you have two elements with id of author

#author is not a child of #quote-box : expected 2 to equal 1

1 Like

Oh wow, thank you. I got too focused on the HTML. Thank you!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.