Application and example of link datum tag

Source: Internet
Author: User
Tags relative window
Link

< Base > is a link datum tag that changes the default values for all link markers in a file. It can only be adapted to the beginning of the file, that is, between Mark < head > and

<base href= "http://www.webjx.com/"/>

The above is consistent with the XHTML notation. In this way, the default path for all HTTP files and pictures (including relative path links and picture addresses) is set for the homepage of webjx.com, which can only be filled in a relative or absolute path.

General relative path link and picture address are default to the page is located in the directory as a starting point, if this method, all the links in the file will be webjx.com home as a starting point.

In the case where base is set, if there is a link to the following

<base href= "http://www.webjx.com/"/>
<body>
<a href= "/" > Web Teaching Network </a>
</body>

So, no matter where the link is on the page, it points to Ducky's private life.

In this way, we can also set all the links to open in a new window, that is, target= "_blank."

< base target= "_blank"/>

This way, all the links on the page will open in a new window.



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.