How to set up a Web page link

Source: Internet
Author: User

Web Links

A link to a Web page is one that you want to link to a specific page in your Web site. For example <a href= "http://www.wuhanjz.net/" > Wuhan website Construction </A>

If the target page is in the same position as the current page, the property value of the <a href= ">" is the destination page file name (with the extension). For example, a.html and b.html are on the Www.wuhanjz.net page, you can use a.html directly as the property value of a tag. Note: When designing a Web page hyperlink, make sure that the page that the href attribute refers to is present, or a notification page (or 404 pages, if any) will appear, telling the visitor that the page does not exist. Also, when you link to a Web site, make sure that the href attribute refers to a Web site that you can access, otherwise you may receive a notification page that the site cannot access.

Specify where to display the target page using the target property

usually. When you click the hyperlink, a new window opens to display the destination page. In fact, the hyperlink also has an optional attribute of target, which specifies where the target Web page will appear. In addition to opening a new window, you can also be a frame in a frame structure or a page frame on this page. The advantage of using the target attribute is to keep information consistent without creating a sense of visual interruption. Personally think that the construction station is to use a new window to open the page, that is, target= "_blank", more conducive to site optimization.

File download

In hyperlinks, if the href attribute specifies a file format that the browser can display or play, the file is displayed directly when you click the hyperlink. For example, if you specify an HREF attribute value as an image file in a JPG format, you can display the image directly in the browser when you click the hyperlink ...

File downloads are a special case of hyperlinks. When the attribute value of href is not a normal URL or a Web page file, such as compressed files, you will be prompted to download the download box, a lot of software site links will be directly pop-up download box, if it is in the more important page appears on this download page, Using the Nofollow property on a link is more appropriate for optimization.

Note: Currently, hyperlinks to Word documents are often used. When you link a Word document, the Download dialog box appears with the open, save two command buttons. This article by the Wuhan website Construction http://www.wuhanjz.net/Original publish, reprint please specify.

Related Article

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.