Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to make a download link ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 230
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss how to make a download link ?

    So we will use HTML anchor download attribute for making a download link.Because The download attribute is used to specifies that the target will be downloaded when a user clicks on the hyperlink.

    The download attribute is always used with the href attribute.

    syntax of download Attribute

    <a download="filename">
    

    you can take reference of bellow example:

    <!DOCTYPE html>
    <html>
    <body>
    
    <!-- here create a href attribute and also call download attribute -->
    <a href="http://localhost/test/images.jpg" download>
      <img src="/images.jpg" alt="image_download" width="100" height="100">
    </a>
    
    </body>
    </html>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: