How To Use The <a> To Make Links & Open Them ... - HTML
文章推薦指數: 80 %
The target attribute specifies where the linked document will open when the link is clicked. The default is the current window. If target="_blank" , the ...
SkiptocontentHTML / HTMLAnchors:Here’sHowToCreateLinksForFastNavigation / HowToUsea(ForCreatingHyperlinks)InHTML/HowToUseTheToMakeLinks&OpenThemWhereYouWant!Disclosure:Yoursupporthelpskeepthesiterunning!Weearnareferralfeeforsomeoftheserviceswerecommendonthispage.LearnmoreAttributeofHowToUsea(ForCreatingHyperlinks)InHTMLWhatdoesHowToUseTheToMakeLinks&OpenThemWhereYouWant!do?Specifiesthecontextinwhichthelinkedresourcewillopen.Contents1CodeExample2Framesdeprecated;onlyuse_blank3Defaulttarget4atarget=”_blank”OpeninNewBrowserTab(orWindow)4.1WhyOpeninaNewBrowser?4.2OpenAllExternalLinksinaNewTabwithJavaScript4.3Reasonsnottouse`target=”_blank”5ValuesofthetargetAttribute6AllAttributesoftheanchorElement7BrowserSupportfortargetCodeExample
延伸文章資訊
- 1HTML a href 連結屬性 - Wibibi
以上語法中,a href 等號右邊用來放置要前往的連結網址(URL),target 是連結目標的意思,可以用來設定用何種方式前往連結,常見的有另開視窗(_blank)、直接於現在的 ...
- 2HTML <a> 标签的target 属性 - w3school 在线教程
HTML <a> 标签的target 属性. HTML <a> 标签. 定义和用法. <a> 标签的target 属性规定在何处打开链接文档 ...
- 3The a target HTML Attribute Explained - freeCodeCamp
A target attribute with the value of “_blank” opens the linked document in a new window or tab. <...
- 4HTML <a> 標籤的target 屬性
如果在一個<a> 標籤內包含一個target 屬性,瀏覽器將會載入和顯示用這個標籤的href 屬性命名的、名稱與這個目標吻合的框架或者視窗中的文件。如果這個指定名稱或id 的框架 ...
- 5超連結標籤
<a href="http://mail.yust.edu.tw/~ccchen/html/text.htm">字體標籤</a> □ 呈現結果 ... 祕訣: <a href="連結路徑" ta...