html a tag


  Translation results:

UK [ə] US [eɪ]

art.One (one); each (one); any one (one)

html a tagsyntax

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

Description: 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

Note: 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.

html a tagexample

<!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>

Run Instance»

Click the "Run Instance" button to view the online instance

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href=" target="_blank" >百度</a>
</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A