HTML base href attribute
Examples
All relative URL of the page specified reference URL:
<head>
<base href="http://www.w3big.com/images/">
</head>
<base href="http://www.w3big.com/images/">
</head>
try it"
Browser Support
All major browsers support the href attribute.
Definition and Usage
All relative URL reference link href attribute specifies the page.
grammar
<base href="URL">
Property Value
值 | 描述 |
---|---|
URL | 作为基准 URL 的绝对 URL(比如 "http://www.w3cschool.cc/")。 |