set the anchor tag to that it points to the top of the page? Please help me. I cannot get this question
how to add a hyperlink using html
<!doctype> <html> <head> <title>My trip to Spain</title> </head> <body> <img src=images/spain.jpg alt="A picture of me in Spain"> <p>Here is a picture of me in Spain last summer!</p> <a> href="#top"= Go back to the top of the page.</a> </body> </html>
Adam Pengh28,838 Points
Note from Moderator:
While the original answer may have been correct, there was no explanation for why it worked. This kind of answer is discouraged because students can complete a task without knowing why the answer works.
Adam Pengh , if you would like to rewrite your answer with an explanation, feel free to delete this message and repost.