Bug report: Give Links Meaning by Using Descriptive Link Text

Bug report: Give Links Meaning by Using Descriptive Link Text
0

#1

Tell us what’s happening:

This assignment is buggy and need to be fixed. (or the validation of the assignement is buggy)

It keeps telling me “Your code should move the anchor a tags from around the words “Click here” to wrap around the words “information about batteries”.”

But the archor tag is wrapped around the words “Click here for information about batteries”.

I even tried to only wrap the tag around “information about batteries” but that gave me another error message:
“Your code should move the anchor a tags from around the words “Click here” to wrap around the words “information about batteries”.”

so… someone should fix this…

Your code so far


<body>
  <header>
    <h1>Deep Thoughts with Master Camper Cat</h1>
  </header>
  <article>
    <h2>Defeating your Foe: the Red Dot is Ours!</h2>
    <p>Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightening speed. But chin up, fellow fighters, our time for victory may soon be near. 
      <a href=""> Click here for information about batteries </a>
    </p>
  </article>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_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-accessibility/give-links-meaning-by-using-descriptive-link-text


#2

You are correct wrap it around “info about batteries” leave no spaces after the closing of anchor tag </a> and have it in one line, don’t break the line also place a dot after the </a>


#3

There’s no bug. reset your code and move that a and wrap your text with it like in the following:

<a href="">information about batteries</a>

and be sure to put your closing </a> before the closing </p>.


#4

already tried that as I wrote above… but if Sujith3021 was right!
it was the whitespace between the text and the closing tag that trigged the error.
…but as whitespace it´s not an error the validation for this assignement is flawed . (in my opinion.)


#5

You were right - that was the issue.(thanx!) But I still think it’s a flaw in the validation. extra whitespace should not be an error…


#6

It’s not a flaw, the test case is written in such a way that no extra characters should be used in particular a situation.