diff options
| author | s1n <[email protected]> | 2019-08-08 20:26:23 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-08 20:26:23 -0700 |
| commit | 4dc13d58b27effba8a3d797479076713cc45b2ea (patch) | |
| tree | 9f15be05dc2e4f0d47abbd44731513010d76135e | |
| parent | Update README.md (diff) | |
| download | download-test-4dc13d58b27effba8a3d797479076713cc45b2ea.tar.xz download-test-4dc13d58b27effba8a3d797479076713cc45b2ea.zip | |
Update README.md
| -rw-r--r-- | README.md | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -1,6 +1,7 @@ <!-- TABLE OF CONTENTS --> ## Table of Contents +* [Usage](#usage) * [License](#license) * [Contact](#contact) @@ -9,7 +10,23 @@ <!-- USAGE EXAMPLES --> ## Usage -<a href="http://forward.s1n.pw/download-test">View Demo</a> +This is the most basic method of creating a downloadable file, <a href="http://forward.s1n.pw/download-test">view 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> +You can also **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> +``` |