Use of HTML <a> tags

Source: Internet
Author: User

    1. <a></a> tags are called link markers , and are made up of <a> and </a> The enclosed text, pictures, etc. can be used as a link

Eg:<a href= "index.html" name= "Hello" target= "_top" >

    • href= "Index.html"
      This parameter cannot be associated with another parameterNameUse This parameter to create a link that can be pressed.
      • when as a outer when linking:  href What is set is the name of the file to which the link is attached, if the file is associated with this html
      • when as a inside when linking:  href What is set is the reference point of the same file as the reference point or the designated file of the link, and do not surround any calligraphy and painting only add the end of the mark </A> <a href= "#there" ></a>  <a href= "Index.html#there" ></a>  and <a href= "http:/ /www.school.net.hk/~chris55/index.html#there "></a>  there Span style= "font-family: Song Body" is the reference point, and it is preceded by a symbol #  name was buried in advance in the document.
      • Name= "Hello"
        This parameter is to bury the reference point for the file as being linked and will not be displayed. So that creates an internal knot to use two times <A> link tag. One using the parameter name First buries a reference point in the file, and the other uses the parameter href to connect to the reference point.
      • target= "_top"
        sets the window to be displayed for the result of the link being pressed. The optional values are: _blank, _parent, _self, _top, box window name .
      • target= " box window name "
        This applies only to the frame, and if set, the result of the link is displayed in the box window with the box window name , which is named in advance by the frame tag.
      • target= "_blank" or target= "new"
        The contents of the link are opened in a new browsing window.
      • target= "_parent"
        View the contents of the link as the last screen of the file.
      • target= "_self"
        Displays the contents of the linked screen in the current window. ( default value )
      • target= "_top"
        Displays the contents of the frames linked to the frame in a window without frames. (that is, the frame is removed )

Use of HTML <a> tags

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.