26. Problem with link text


#1



https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/4/5


I've been trying to submit my code but continue to get the following error below. Any insight?

Oops, try again.
Did you remember to put some link text between your <a></a> tags? You can't leave them empty!


<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <h1>Yeah brah!</h1>
        <p>For realz doh...</p>
        <img src="http://cdn2-www.dogtime.com/assets/uploads/gallery/30-impossibly-cute-puppies/impossibly-cute-puppy-8.jpg"/>
        <a href="www.google.com">Link text</a>
    </body>
</html>


h1 {
    font-family: Verdana, sans-serif;
    color: #576D94;
}
p {
    font-size: 18px;
    color: #4A4943;
    font-family: Garamond, serif;
}
img {
    border: 1px solid #4682b4;
    height: 100px;
    width: 300px;
}
a {
    text-decoration: none;
    color: #cc0000;
}


#2

@textcoder40073

Have you tried a refresh Browser

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

I've tried refreshing, resetting the code, etc. I continue to get the same error...


#4

@textcoder40073
you are mentioning an Oops-message from section-26 "Links and text decoration"
the tests done by the course-checker
are included in my HTML code, in =script=

I would like to ask you to use the Reset button
and then paste in the following code.....

<!DOCTYPE html>
<html>
  <head>
    <title>Result</title>
    <link type="text/css" rel="stylesheet" href="stylesheet.css" />
  </head>
  <body>
    <h1>Header 1</h1>
    <p>A paragraph, well a sentance atleast.</p>
    <p>Tan solo
      <a href="https://www.facebook.com/1Rap.Reyes">Un dia más así</a>
    </p>

    <script>
    function hexToRgb(hex) {
      var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
                return result ? {
                    r: parseInt(result[1], 16),
                    g: parseInt(result[2], 16),
                    b: parseInt(result[3], 16)
                    } : null;
    }

    //var desiredRGB = (hexToRgb("#cc0000").r );
    var desiredRGB = (hexToRgb("#cc0000") );
    var anchorLength = $('a').length;
    if (anchorLength > 0) {
      var anchorTextDeco = $('a').css('text-decoration');
      var anchorText = $('a').html();
      var anchorColor = $('a').css('color');
      var anchorHref = $('a').attr('href');

      $('<li>').text('anchor length is [' + anchorLength + ']').appendTo('body');
      $('<li>').text('anchor text is [' + anchorText + ']').appendTo('body');
      $('<li>').text('anchor href is [' + anchorHref + ']').appendTo('body');
      $('<li>').text('anchor color is [' + anchorColor + ']').appendTo('body');
      $('<li>').text('desired anchor color RGB [rgb(' +
          desiredRGB.r +','+
         desiredRGB.g +','+
         desiredRGB.b +
         ')]').appendTo('body');
      $('<li>').text('My text-decoration is: ['+anchorTextDeco+']').appendTo('body');
    }
   </script>
  </body>
</html>