HTML front end foundations ( Im stuck again)steemCreated with Sketch.

in #education8 years ago

Hi there, busy doing my coding clases and I wanted to ask for your help. Of course I could also take a -10 score on my course and get the answer but I think this is a nice way to get some opinion from Steemit.

Ive ran into this problem now and have no idea what Im doing wrong 

Instruccions are :

 Make the text About into a link to the page about.html. If you need to, check the tab that contains a description of all of the files on the site server to decide how to create the link path. 

And this is what I have filled in

Can u see what I am doing wrong?


Sort:  

f you need to, check the tab that contains a description of all of the files on the site server to decide how to create the link path.

it needs to be a href="http://www.myawesomesite.com/xxx/about.html"
or

href ="/xxx/about.html"

you need to check the directories on the site server and find the directory the about.html is on, and use that as xxx.

im not sure if they want the absolute link (the one with the full site name like the first one i gave you) or the relative link (the one with just about.html), but relative links never have http://

I think I did it correct, but it does not accept my answer

no, i think its the second type of link, a link to the file on your server. this is called a relative link. In a relative link you don't ust "http://", you just use "/about.html"

But if the html page is on a different directory on your server, then you use "/xxx/about.html"

So first you have to go to the tab where it lists the files on your server and find out what directory about.html is in.

So lets say you find "about.html" in a in a directory called "info"

then you have to make the link look like a href="/info/about.html"

If its not in any directory, the link will just be a href="/about.html"

got it finally
thanks so much for helping

Never mind - That's not it :D

http://about.html

maybe:

http://localhost/about.html

?

ok will try it I think we posted at the same time

Nope its not working did I do it correct?

I was just guessing.

Someone else fixed it.

No Im still trying to find a way to answer correct

Thanks for your help it is like this in the end to be correct

When adding an href to a link, you can make it relative to the current domain by ommitting the http part.

So try changing your href value to just "/about.html" and it will use the current domain automatically, i.e. "steemit.com/about.html"

yeah, i think they hid it in a directory too though (they tell him to look through the site server to find it). theyre tricksters these code adademy ppl

Finally completed this little problem thanks so much for being here

if you put http:// in front then you need a domain name and a / afterwards before the filename. If you are making a reference to a file in the same directory as the document you are looking at, you can just use the filename by itself (or does it have to have a / in front, I'm not sure, initial / on a filename means the root usually. Without a / means 'Current Working Directory').

This post has been ranked within the top 80 most undervalued posts in the second half of Jan 20. We estimate that this post is undervalued by $6.72 as compared to a scenario in which every voter had an equal say.

See the full rankings and details in The Daily Tribune: Jan 20 - Part II. You can also read about some of our methodology, data analysis and technical details in our initial post.

If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.

Coin Marketplace

STEEM 0.21
TRX 0.14
JST 0.030
BTC 69812.20
ETH 3376.99
USDT 1.00
SBD 2.78