Results 1 to 2 of 2

Thread: create an "go top" image link

  1. #1
    Join Date
    Jan 2007

    create an "go top" image link

    Hi, I need to create an imager link that do the function "go top", recently I found the next code: <a href="#top"><img src="img/gotop.gif"></a> ok, but what tag do I have to use or how can I assign the name "top" to the content of the webpage that itīs in the beginning, this "top" goes inside a <p> or inside on <table>

    thanks a lot for your help

  2. #2
    Join Date
    Nov 2002
    Baltimore, Maryland
    You need to give your BODY element an ID; and your IMG element needs help:
    <body id="top">
    <a href="#top"><img alt="go to the top of this page" src="img/gotop.gif"></a>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center