Home > Web Front-end > HTML Tutorial > What is the base tag and its function introduction_HTML/Xhtml_Web page production

What is the base tag and its function introduction_HTML/Xhtml_Web page production

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:39:23
Original
2195 people have browsed it

The

tag specifies the default address or default target for all links on the page.
Normally, the browser will fill in the gaps in a relative URL by extracting the corresponding elements from the URL of the current document.
Use the tag to change this. The browser will then no longer use the URL of the current document, but will use the specified base URL to resolve all relative URLs. This includes URLs in , , ,

tags.

Test:

1: The link path placed in front of the base tag can use a relative path and is relative to the current path,
but the link placed after it using a relative path will be relative to the path specified by base.
2: After using the base tag, the relative path of the link in the body will be relative to the path specified by base.
3: After using the base default target, the subsequent opening method will be opened in the method specified by base, unless the opening method is defined later.
Summary: base actually defines a default address and default target. All link elements after it will work.

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