Home >Web Front-end >HTML Tutorial >XHTML introductory learning tutorial: XHTML hyperlink_HTML/Xhtml_web page production
Hyperlink tag
It is no exaggeration to say that hyperlinks connect the entire Internet. A hyperlink can point to almost any resource on the Internet, such as another web page, a picture, an MP3 song, etc. The syntax for using XHTML to create hyperlinks is very simple. It only requires a pair of tags:
Text or pictures to be displayed on the page
For example:
Script Home
will be displayed as a hyperlink in the browser. Click it and you will enter the script home (http://www.jb51.net/). The effect is as follows:
Script Home
The href attribute in the tag is the address to which this hyperlink points. It can be a general URL or an email address. In a later exercise example, we will create a hyperlink pointing to the email address. Link. The content (element) between and will be displayed as a hyperlink on the web page. Note that when the href attribute value is a general URL (absolute path), its "http://" cannot be omitted, otherwise the browser will recognize it as a relative path. The difference between absolute paths and relative paths is beyond the scope of this XHTML tutorial. If you don't understand, you can search for relevant information on Baidu.
In-page jump hyperlink (anchor)
You may have noticed when browsing other websites that there are some hyperlinks that can take you back to the top of the page or to any location within the current web page. Like this link:
Back to title
The implementation method is as follows, first add the following code to the title. :
Copyright©2005-2006XXX Copyright not available