Home > Web Front-end > HTML Tutorial > Introduction to how HTML uses hyperlinks to open linked files_HTML/Xhtml_Web page production

Introduction to how HTML uses hyperlinks to open linked files_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:41:12
Original
3091 people have browsed it

a and href attributes HTML uses to represent hyperlinks, which is called anchor in English.
 
can point to any file source: an HTML web page, a picture, a film and television file, etc. The usage is as follows:
 The display text of the link
Click the content in to open a linked file, and the href attribute represents this The path to the linked file.
For example, if you link to the home page of the jb51.net site, it can be expressed like this:
target attribute Use the target attribute to open the linked file in a new window.
 Duote Software Station jb51.net home page
 The title attribute uses the title attribute to allow the mouse to hover over When a hyperlink is on, the text comment of the hyperlink is displayed.
 Duote Software Station websiteIf you want to comment multiple lines Display, can be used as a newline character.
 Duote Software Station Website
Name attribute Using the name attribute, you can jump to a specified part of a file.
Using the name attribute, you need to set a pair. The first is to set the name of the name, and the second is to set an href to point to this name:
 See Chapter 1 Chapter
The name attribute is usually used to create a chapter directory (tableofcontents) of a large file. Create a link for each chapter and place it at the beginning of the file, and set the Name attribute at the beginning of each chapter. When the user clicks on a link to a chapter, the content of this chapter is displayed at the top.
If the browser cannot find the part specified by Name, it will display the beginning of the article without reporting an error.
Link to email address On websites, you will often see a "Contact Us" link. Once you click this link, your email client, such as Outlook Express, will be triggered, and a window for creating a new email will be displayed. Use to achieve this function.
 Contact Sina

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