Home >Web Front-end >HTML Tutorial >What is the base tag and its function introduction_HTML/Xhtml_Web page production
The
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
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.