html a tag syntax

html a tag syntax

Role: <a> tag defines a hyperlink, a link from one page to another page.

Description: The most important element is the href attribute <a> attribute that indicates the target of the link. In all browsers, the default appearance of links is: unvisited link is underlined and blue, links have been visited is underlined and purple. Active link is underlined and red

Note: If no href attribute, can not use the following property: download, hreflang, media, rel , target , and the type attribute. Linked pages are usually displayed in the current browser window, unless you specified another goal (target attribute). Use CSS to style links.

html a exemplary label

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="http://www.php.cn">php中文网</a>
</body>
</html>

Guess you like

Origin www.cnblogs.com/furuihua/p/11918256.html