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
    • 275
    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

    1. <a download="filename">

    you can take reference of bellow example:

    1. <!DOCTYPE html>
    2. <html>
    3. <body>
    4.  
    5. <!-- here create a href attribute and also call download attribute -->
    6. <a href="http://localhost/test/images.jpg" download>
    7. <img src="/images.jpg" alt="image_download" width="100" height="100">
    8. </a>
    9.  
    10. </body>
    11. </html>

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: