MENU
Hyperlink
<a> specifies a clickable hyperlink to an external site. ( for 'anchor')
......href=URL#tag_id
......hreflang
......type=MIME_type
......referrerpolicy
......download[=filename]:download;don't navigate to
......ping=space-separated list of URLs to track
...... target= {
_blank: in a new window or tab |
_parent: in the parent frame |
_self: in the current frame |
_top: in the full-body |
(framename): in the named frame }
...... rel={
alternate: alternative page |
author: author and contact |
bookmark: permalink for <article> |
external: another domain |
help: further information |
license: copyright information|
next: next resource|
nofollow: tells search engines not to follow |
noopener: do not set Window.opener to prevent destination page from accessing current page |
noreferrer: no HTTP Referer header |
opener: set Window.opener |
prev: preceding resource |
search: links to a search tool |
tag: describes a tag that applies to this document }
RESETRUNFULL
<!DOCTYPE html><html><head>
<title>Hyperlinking</title></head><body>
Click <a href="https://html.spec.whatwg.org/#htmlanchorelement" rel="help">here</a> for more information.
<p>You can run JavaScript on a URL attribute like
<a href="javascript:alert('hi');">this</a>.</p>
<p>You can send an email like
<a href="mailto:testing@example.com?subject=Hi&body=Hi">this</a>.</p>
<p>You can initiate a call session on a smart phone like
<a href="tel:+35453654">this</a>.</p>
<p>You can initiate an SMS session on a smart phone like
<a href="sms:35453654?body=hello">this</a>.</p>
<p>You can initiate a WhatsApp session on a smart phone like
<a href="https://wa.me/44165522077?text=Hi">this</a>,
where +44 is the country code. <i>(For this demo to work, first click the FULL button above the code editor.</i></p>
<p>You can initiate a Skype session like
<a href="skype:userid?chat">this</a>.
Besides 'chat', other actions include 'add', 'call', 'sendfile', 'userinfo', and 'voicemail'.</p>
<p>You can download a file like
<a href="/shared/testing.gif" download>this</a>.</p>
</body></html>
It is also possible to download YouTube videos through third-party websites. As of 22 Mar 2020, to use these converter services directly, modify the URL of the YouTube video:
- add "ss" before "youtube" OR
- add "pwn" before "youtube" OR
- change "youtube" to "youpak"
For instance, to obtain the URL of the download link for the YouTube video at
https://www.youtube.com/watch?v=ryhnK-iDybE,
go to
https://www.ssyoutube.com/watch?v=ryhnK-iDybE
Right-click the Download button, and copy the link address. Then paste it in an <a> tag.
RESETRUNFULL
<!DOCTYPE html><html><body>
<a download href="/shared/neptune.jpg">
<div>Download<br/>
<img src="/shared/submit.jpg"/>
</div>
</a>
</body></html>