Home > Web Front-end > HTML Tutorial > What is the html base URL? html base detailed analysis and summary

What is the html base URL? html base detailed analysis and summary

寻∝梦
Release: 2018-08-16 17:40:52
Original
15513 people have browsed it

html What is the base URL? This article mainly explains what the html base URL value is, as well as the detailed analysis and usage examples of html base

html base URL tag definition and usage instructions:

## The # tag specifies the default URL or default target for all relative links on the page. At most one element can be used in a document. The tag must be inside a element.

html base URL attribute value:

What is the html base URL? html base detailed analysis and summary

html base tag definition and usage:

What is the html base tag: The tag specifies the default address or default target for all links on the page.

Normally, the browser will extract the corresponding elements from the URL of the current document to fill in the gaps in the relative URL.

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 , What is the html base URL? html base detailed analysis and summary, ,
tags.

HTML Tag example:

<head>
<base href="http://www.php.cn/i/" />
<base target="_blank" />
</head>
<body>
<img  src="eg_smile.gif" / alt="What is the html base URL? html base detailed analysis and summary" >
<a href="http://www.php.cn/i/">php中文网</a>
</body>
Copy after login

html Attributes of base tag:

What is the html base URL? html base detailed analysis and summary

Differences between HTML and . Note: The tag must be located inside the head element.

[Related recommendations]

What is the lang attribute in HTML for? What does the lang attribute in HTML do?

#What are the new structural elements in HTML5? Usage of new structural elements in HTML5 (recommended)

The above is the detailed content of What is the html base URL? html base detailed analysis and summary. 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