How to Use the 'download' Attribute For Your Websites - HTML5 Tutorial

preview_player
Показать описание
In this video I'll be showing you how to create "download" links for use on your websites or web applications. This is done using the new HTML5 "download" attribute.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

This is waaaay easier than I would’ve thought

IronFoxOnFire
Автор

Wow, i didn't expect it to be this easy! THANKS A LOT MAN!!

besufkaddebebe
Автор

I thought that I would have to add complex JavaScript code... But it was as simple as the "required" attribute used in html form.... Thanks 😊

rubayethassan
Автор

I thought it was used by a very long javascript but it was used in html. I was shocked. Thank you for this video. I liked it very much.

shriyanscreativestudios
Автор

not working with me
it just opens the file in da browser:/

aybakk
Автор

this does exactly what I wanted, thank you for the awesome tip!

ingridzeng
Автор

YOU ARE AWESOME!! Thank you so much for teaching me how to do this. I watched countless videos and searched for a while on the internet and couldn't find a way until I came across your video. This unfortunately was not taught in my class either. I liked your video and subscribed!

Selina-hklk
Автор

Man, how can I xpress my feelings. I am too happy. Thanks very much. Love from India. I think 🤔 u are a British man

hyperionedits
Автор

Thank you for this tutorial but I still have a doubt related to this that how can I make a download button for an image using HTML and CSS? As soon as it is clicked image will start downloading.

bobbymahato
Автор

it is awesome dear you explain in one line.thnx alot man

saif.ali
Автор

Awesome Man! This was way easier than I had thought !

rahulshah
Автор

So helpful. Works perfectly. Thanks for the video

modinatadenike
Автор

wow..thank you so very much. Subscribed.

theodorebnavugar
Автор

How would this work for downloading an app? Would you link to the folder containing the project in some way? I just tried this using a UE5 game im working on and its not downloading it.

nathanwhite
Автор

Hi
I tried this in chrome but not getting download it just viewing the image
<a href="images/sun.jpg" download="Moon"> DOWNLOAD </a>
Help me

vigneshreddy
Автор

This is simply perfect. Thank you a lot!

vineboomsoundeffect
Автор

Hi, is it possible to change the download path? For example, will create a folder named "Sample" and all the downloads from that site will be placed there instead of default "Downloads" folder. Thanks in advance!

MdYusuf-ugoz
Автор

please help mp4 video and mp3 audio not download chrome and opera browser

ShahzaibKhan-whhh
Автор

I did the same thing, i dont understand why it opens the file instead of downloading it

ublue
Автор

I am editing in notepad and i have a file in the same folder as my html file, but if i type that with my filename, then it will just open in newtab, even with the download attribute

PixelGamer_