base-before-urls
Require <base href> to appear before elements with URL attributes in <head>.
Severity
warning
❌ Incorrect
html
<head>
<link rel="stylesheet" href="s.css">
<base href="/">
<title>T</title>
</head>✅ Correct
html
<head>
<base href="/">
<link rel="stylesheet" href="s.css">
<title>T</title>
</head>Reference
Configuration
json
{
"rules": {
"base-before-urls": "warning"
}
}