HTML Learning Notes (vi) Adding links

Source: Internet
Author: User
Tags ftp file file transfer protocol ftp file transfer ftp file transfer protocol

HTML to add a link to the label used for the <a> tag

Syntax :

Definition: Jump to a label on a specified page or file from the current page
<a href= "URL" > Hotspot text </a>
URL (Uniform Resource Locator Uniform Resource Locator)
protocol://domain name or address/path/file name. suffix name? parameter # tag
Do not write in the corresponding address to find the file open
HTTP Hypertext Transfer Protocol
FTP File Transfer Protocol

Mail Transfer Protocol (if a local mail client is installed, such as Outlook)


JavaScript Pseudo-protocol generally if the Request page label does not do any jumps generally will use javascript:void (0),

In the actual development process, this method is often used to deal with the skip page without programming, but need to keep the jump effect.


#标记meaning is to jump to the development section of the specified file (jump location, that is, anchor ), set the anchor point by the name property of a note

Common Properties:

    name defines an anchor point in #标记format

    target Common values are _self and _blank, the default is _self, which is open on the current tab, andblank is a new 's tab opens.

Also the infrequently used values are _parent, opened in the parent window, _top, opened in the top-level window.

    

        

HTML Learning Notes (vi) Adding links

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.