XHTML getting started Tutorial: XHTML hyperlink _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
The hyperlink & lt; a & gt; tag is an exaggeration to say that the hyperlink connects the entire internet. A hyperlink can point to almost any resources on the Internet, such as another webpage, an image, and an MP3 song. The syntax for using XHTML to create a hyperlink is very simple. You only need a pair of & lt; a & gt; tags: hyperlink tag.
It is no exaggeration to say that a hyperlink connects the entire internet. A hyperlink can point to almost any resources on the Internet, such as another webpage, an image, and an MP3 song. The syntax for using XHTML to create a hyperlink is very simple. You only need a pair of tags:
Text or images to be displayed on the page
For example:
Foot home
Will be displayed as a hyperlink in the browser, clicking it will go to the foot home (http://www.jb51.net /). The effect is as follows:
Foot home
The href attribute in the tag is the address to which the hyperlink is directed. It can be a General website or an email address, in a later exercise instance, we will create a hyperlink pointing to the email address. The content (element) between and will be displayed as a hyperlink on the webpage. Note that when the href attribute value is a general URL (absolute path), its "http: //" cannot be omitted. Otherwise, the browser uses it as the relative path for identification. The difference between absolute path and relative path is not covered in this XHTML tutorial. If you do not know about it, you can search Baidu for relevant materials. Jump to the hyperlink (Anchor) in the page)
When you browse other websites, you may notice that there are some hyperlink that allows you to return to the top of the page or any location on the current page. Like the following link:
Back to title
The implementation method is as follows. First, add the following code to the title. :
How to get started with XHTML -- XHTML hyperlink
The code of the hyperlink itself is:
Back to title
When there is a large amount of content in your page, you can quickly find the required information. Generally, directories are used in descriptive web pages. Link exercise
The following example shows how to add a hyperlink to "index.html. Open javasindex.html and modify the Code as follows:

The intermediate code is omitted ......

Contact me


Copyright©No copyright for 2005-2006XXX




Save and browse your webpage. Make sure that your webpage is the same as this one. Click the newly created link. If you have installed mail management software such as Outlook, an email sending interface will be opened.

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.