• I wanted to insert files into hyperlinks for viewers to directly download from. For an example, say i was writing an article about a song, and in a hyperlink, or text, i could insert a file, creating a hyperlink so when users click on it, they would directly download the file instead of being taken to another link. How could i do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Here is the tutorial. Adding Files for Download
    Or you can do in this way also.

    <a href="images/bswajitgiri.jpg">
      <img border="0" src="images/bswajitgiri.jpg" alt="bswajitgiri" width="104" height="142">
    </a>

    Revised Code

    Sorry forgot mention download attribute

    <a href="images/bswajitgiri.jpg" download>
      <img border="0" src="images/bswajitgiri.jpg" alt="bswajitgiri" width="104" height="142">
    </a>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i insert a file into a hyperlink?’ is closed to new replies.