[Task 188] Having a bit of a problem with a hyperlink

Back to Problem Solutions forum

shi-anli     2020-10-26 12:13:02
User avatar

Hello!

The testing system keeps returning an error ("Your file does not contain a hyperlink to some http://... address"), and I can't figure out what I am doing wrong.

Link to my page

My code looks like this:

<html>
    <head>
        <title>Basics of HTML demo</title>
    </head>
    <body>
        <p align>Yooooooo</p>
        <p align=center style='color: #0077AA'>Secret value is <b>4278909</b></p>
        <a href='http://www.codeabbey.com/index/task_view/basics-of-html'>hi</a>
    </body>
</html>

I've tried to link a 'http' page in 'a href', but it seems like that's not the case here. Thanks for reading and sorry if I misunderstood something!

shi-anli     2020-10-26 12:15:03
User avatar

(Oh my god, sorry for my code formatting) (upd: fixed it)

crydolphin666     2020-10-26 13:26:06

Your page looks like:

<html>  
    <head>  
        <title>Basics of HTML demo</title>  
    </head>
    <body>
        <p align>Yooooooo</p>
        <p align=center style='color: #0077AA'>Secret value is <b>4278909</b></p>
        <a href='http://h2020.myspecies.info/'>hi</a>
    </body>
</html>     

Can't you see any difference?

qwerty     2020-10-26 13:32:34

shi-anli, your page is OK. The only problem is that...

<a href='http://www.codeabbey.com/index/task_view/basics-of-html'>hi</a> is wrong, and

<a href="http://www.codeabbey.com/index/task_view/basics-of-html">hi</a> is correct.

use double quotes for reference.

qwerty     2020-10-26 13:36:04

I myself failed to parse your page with my tool because of that. My program wasn't expecting a single quotes. Seems that I have still a lot of work on improving my HTML parser...

shi-anli     2020-10-26 20:43:17
User avatar

crydolphin666, oh, my bad, mixed up the files. Again. >_>"

qwerty_one, thank you, got it! Not really used to distinguishing quotes and double quotes with Python, haha...

Please login and solve 5 problems to be able to post at forum