Home > Web Front-end > HTML Tutorial > Detailed explanation of how to open the link in HTML by default with tag elements

Detailed explanation of how to open the link in HTML by default with tag elements

黄舟
Release: 2017-07-20 10:33:27
Original
2719 people have browsed it

HTML The default opening method of hyperlink (anchor text) and the default link URL address tag element

1. Grammar and structure

<base target="_blank" href="http://www.lpcblog.com/" />
Copy after login

2. Html base hyperlink default opening address and opening method label usage instructions 

 1. Target value:
  1._blank New window opens URL link
2. _parent Refresh this webpage and open the corresponding URL address
3. _self
4. _top
The target value here is the same as the target value of a link. The usage method is

2. Href value:
It can be a URL address (website)

3. Base introduction

The Base tag is the page All links on specify a default address or default target.

In the HTML web page, the A hyperlink (anchor text) address does not have a link with the http URL (domain name). The default browser will open the link and add the base tag to set the URL address.

If there is no opening target method in a hyperlink in an HTML web page, the default browser will set the opening method of its base setting.

4. Summary of base tag attributes

1. is generally placed between the head tags in HTML.
 2. Base is used to set the link address opening method and main (domain name) address settings in the html web page.

The above is the detailed content of Detailed explanation of how to open the link in HTML by default with tag elements. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template