Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set Link Target in HTML

Shulou Source: shulou.com Published: 2022-06-01 09:34:34 10月01日 Update

This article mainly explains "how to set link goals in HTML". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to set link goals in HTML.

The target property tells the browser where to open the linked document. Four targets are defined, each starting with an underscore (_) character:

_ blank-Open the linked document in a new window or tab.

_ parent-Open the linked document in the parent window.

_ self- opens the linked document in the same window or tab as the source document. This is the default setting, so it is not necessary to specify this value explicitly.

_ top-opens the linked document in the entire browser window.

Try the following example to understand the basic operation of a link target:

Try this code for example »

About Us

Cloudy Sky

Tip: if your web page is within iframe, you can use the expand iframe on the target= "_ top" link and display the target page in a complete browser window.

Thank you for your reading, the above is the content of "how to set link goals in HTML". After the study of this article, I believe you have a deeper understanding of how to set link goals in HTML, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Links goals documents browsers learning browsing content same code principles names characters that is attributes beginnings ideas situations articles more tags Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info Linux Xiaomi Shulou Information