Create hyperlink

This example demonstrates:

How to create a hyperlink.

Example analysis:

##<a> tag defines a hyperlink, used to link from a page to Another page. The most important attribute of the

<a> element is the href attribute, which indicates the target of the link. The default appearance of links in all browsers is that unvisited links are underlined and blue, and visited links are underlined and purple. Active links are underlined and red

If you do not use the href attribute, you cannot use the following attributes: download, hreflang, media, rel, target and type attributes. The linked page usually displays in the current browser window, unless you specify another target (target attribute). Please use CSS to style the link.


Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(www.php.cn)</title> </head> <body> <p> <a href="http://www.php.cn/index.html">php中文网</a> 是一个指向本网站中的一个页面的链接。</p> <p><a href="http://www.php.cn/">php中文网</a> 是一个指向万维网上的页面的链接。</p> </body> </html>
submitReset Code