css target attribute


  Translation results:

target

UK[ˈtɑ:gɪt] US[ˈtɑ:rgɪt]

n. Target; purpose; (service) object; (shooting) Target

vt. Aim; use... as an attack target

Third person singular: targets Plural: targets Present participle: targeting targeting Past tense: targeted targetted Past participle: targeted targetted

css target attributesyntax

Function: Abbreviation attribute, set target-name, target-new and target-position attributes.

Syntax: target: target-name target-new target-position;

Description: Where is target-name specified? Open the hyperlink (target destination). target-new specifies that the hyperlink should be opened in a new window or a new tab in an existing window. target-position specifies where to place the new destination link.​

Note: target-new and target-position values ​​are only valid in new tabs or new windows created by the target-name value. Currently no browser supports target.

css target attributeexample

<!DOCTYPE html>
<html>
<head>
<style> 
a
{
target:new front;
}
</style>
</head>
<body>

<p><b>注释:</b>目前没有浏览器支持 target 属性。</p>

<a href="//m.sbmmt.com">欢迎访问 php中文网</a>

</body>
</html>

Run instance »

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

Popular Recommendations

Home

Videos

Q&A