summaryrefslogtreecommitdiff
path: root/download-test/README.md
blob: d9ab8a3fa74cdaae6cc0d429a9e38ae2c39770f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- TABLE OF CONTENTS -->
## Table of Contents

* [Usage](#usage)
* [License](#license)
* [Contact](#contact)



<!-- USAGE EXAMPLES -->
## Usage

This is the most basic method of creating a downloadable file, <a href="https://8cy.github.io/html-examples/download-test/">demo</a>.

```html
<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
```
<br></br>
You can also **add text** into the `<a>` tag **to create a button.**

```html
<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
```
<br></br>
Or you can **rename the downloadable file** using the `download=""` variable.

```html
<a href="/path/to/file/examplefile2.jpg" download="August 31 2016 Sales Report">Download the report</a>
```



<!-- LICENSE -->
## License

Distributed under the MIT License. See [`LICENSE`](./LICENSE) for more information.



<!-- CONTACT -->
## Contact

s1nical - [@9inny](https://twitter.com/9inny) - [email protected]

Project Link: [https://github.com/8cy/html-examples/download-test](https://github.com/8cy/download-test)