Back to Problem Solutions forum
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.
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!
(Oh my god, sorry for my code formatting) (upd: fixed it)
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?
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.
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...
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...