diff options
Diffstat (limited to 'download-test')
| -rw-r--r-- | download-test/README.md | 45 | ||||
| -rw-r--r-- | download-test/assets/downloads/Download Test.rar | bin | 0 -> 36122 bytes | |||
| -rw-r--r-- | download-test/index.html | 12 |
3 files changed, 57 insertions, 0 deletions
diff --git a/download-test/README.md b/download-test/README.md new file mode 100644 index 0000000..d9ab8a3 --- /dev/null +++ b/download-test/README.md @@ -0,0 +1,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) diff --git a/download-test/assets/downloads/Download Test.rar b/download-test/assets/downloads/Download Test.rar Binary files differnew file mode 100644 index 0000000..cba1231 --- /dev/null +++ b/download-test/assets/downloads/Download Test.rar diff --git a/download-test/index.html b/download-test/index.html new file mode 100644 index 0000000..ab2a32e --- /dev/null +++ b/download-test/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Download Test</title>
+</head>
+<body>
+ <a href="https://8cy.github.io/html-examples/download-test/assets/downloads/Download Test.rar" download></a>
+</body>
+</html>
|