How to add friendly links in html pages? (code example)

藏色散人
Release: 2018-08-11 17:05:02
Original
13020 people have browsed it

Friendly links are crucial for website optimization. So for newbies, how to add settings for friendly links on the page may be a problem. First of all, everyone knows what a friendly link is. As the name suggests, it is a friendly link, that is, each other places links to each other's websites on their own websites and the URL and website name must be found in the web page code.

So this article will introduce to you how to create website friendly links, that is, how to write html friendly link code. Hope it helps friends in need.

html Friendly link code example is as follows:

<!DOCTYPE HTML>
<html lang="en">
<head>
    <title>html友情代码示例</title>
    <meta charset="UTF-8">
    <style type="text/css">
    </style>
</head>
<body>
<div align="center">
    <table width="980" height="35" border="0" align="center">
        <tr>
            <td>
                友情链接:  
 <a target="_blank" href="#">html友情链接一</a>
                 | 
 <a target="_blank" href="#">html友情链接二</a>
                 | 
 <a target="_blank" href="#">html友情链接三</a>
                 | 
 <a target="_blank" href="# ">html友情链接四</a>
                 | 
 <a target="_blank" href="#">html友情链接五</a>
                 | 
 <a target="_blank" href="#">html友情链接六</a>
            </td>
        </tr>
    </table>
</div>
</div>
</body>
</html>
Copy after login

The above code can be copied directly and tested locally, the effect is as follows:

How to add friendly links in html pages? (code example)

Note:

1. The target attribute of the tag specifies where to open the linked document. Just write the desired URL link in the tag here.

If you include a target attribute within an tag, the browser will load and display the href using this tag. The document named by the attribute in the frame or window whose name matches this target. If this specifies name or id If the frame or window does not exist, the browser will open a new window, give the window a specified tag, and then load the new document into that window. From now on, hyperlinked documents can point to this new window.

2. The most important thing about friendly links is that there should be no dead links.

The above is the detailed content of How to add friendly links in html pages? (code example). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template