download button in html code example

Example 1: html link to download file

<a href="the/name/of/your/file.x" download>

Example 2: upload button in html

<form action="/action_page.php">
  <input type="file" id="myFile" 
  name="filename">
  <input type="submit">
</form>

Example 3: how to add stylish download buttom

<div style="text-align: center;">
  <ul class="button2">
    <li><a class="demo" href="http://askwithloud.blogspot.com" target="_blank">Demo Link</a></li>
    <li><a class="download" href="http://askwithloud.blogspot.com" target="_blank">Download Link</a></li>
  </ul>
</div>
<div class="clear"></div>

Tags:

Html Example