#
<!--
Use of the vCard(hCard) microformat, used to mark up contact details of
people, companies, organisations and places. Includes an download link via X2Vs
hcard to vcard-service. Can be styled as a 2-column hcard via CSS)
-->
<div class="vcard">
<div class="fn">John Smith</div> <!-- FN = Full Structured Name -->
<ul class="communication">
<li class="tel">
<span class="type">Home/Phone</span>
<span class="numbers"> +44 (1234) 56789</span><!-- class "numbers" is for CSS Styling -->
</li>
<li class="email">
<span><a href="mailto:john@thisisfake.com" title="Write me an email!">email</a></span><!-- obfuscate email with http://www.zapyon.de/spam-me-not/ -->
</li>
<li class="url">http://thisisfake.com</li>
</ul><!--/end communication -->
<ul class="adr">
<li class="street-address">Fake Street<span class="numbers"> 123 Fake Street</span></li><!-- class "numbers" is for CSS Styling -->
<li class="postal-code">D-<span class="numbers">12345</span><span class="locality"> locality</span></li>
<li class="country-name">Country</li>
</ul>
</div><!--/vcard-->
<div id="vcard-download"><a href="http://suda.co.uk/projects/microformats/hcard/get-contact.php?uri=http://yourcontactpage.com" title="Add my contact-details to your adressbook">Download my contact-details as a vCard (via X2V)</a>
</div>
html [html:下载链接]通过带有下载属性的标签强制下载链接。 #html #cakephp
<!--
@link https://webdesign.tutsplus.com/ja/tutorials/quick-tip-using-the-html5-download-attribute--cms-23880
-->
<!-- Should be html5. -->
<a href="path/to/file.txt" download="Your Document.txt">Download Document</a>
<!-- In view on CakePHP. -->
<?php echo $this->Html->link(
'<i class="fa fa-download"></i> Download Document',
'path/to/file.txt',
[
'escape' => false,
'download' => 'Your Document.txt',
]
) ?>