How to create a hyperlink: First create an HTML sample file; then create a hyperlink through the syntax of the a tag "Web page element".
#The operating environment of this article: Windows 7 system, Dell G3 computer, HTML5 version.
How to make a hyperlink on a webpage? How to add hyperlink to html? When we read an article, we will see a link added to the text. After clicking, it will jump to another page. Many people are curious. Let's explain how to make a hyperlink?
URL can link to various files
The href attribute in the hyperlink a tag points to the corresponding target file. As long as the target can be recognized by the browser, It will be displayed to viewers and can also be linked to other sites or other servers. To create a hyperconnection method, you only need to use an a tag. The syntax is as follows:
<a href=url>网页元素</a>
can be linked to an email with the following syntax:
<a href="mailto:电子邮箱地址">当前邮箱</a>
Many people open hyperlinks time, it will be displayed in a new window. As long as we add a target="_blank" attribute to the a tag, it will open in a new window.
We can also use hyperlinks to link to different locations on the same page. The syntax is as follows:
<a href="#C5">第五节</a>
When browsing the web, when we click on different areas of a chapter of pictures, we will jump to different links. This is actually a hotspot area. The pictures of a chapter are divided into many areas. The syntax is as follows:
<img src="" usemap="#名称" alt="How to make a hyperlink" >
Hyperlinks can set floating frames. Currently, HTML5 no longer supports framesets, but it can still support the use of framesets. We can create framesets in web pages at will. The syntax is as follows:
<iframe src="链接对象">
The above is the complete explanation of how to make hyperlinks. If you want to know more about HTML tutorial, please pay attention to php Chinese website .
The above is the detailed content of How to make a hyperlink. For more information, please follow other related articles on the PHP Chinese website!