CKTIS / HTML
HTML concept: metadata
HTML metadata describes the document and supplies browser processing inputs: title, encoding, base URL, policy, styles, scripts, and relationships to resources.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
head metadata → document state, base URL, and linked resourcesThe head element contains metadata, and title supplies the document title used by browser UI and history. A conforming document needs one nonempty title, except for an iframe srcdoc document and when a higher-level protocol supplies title information; the title DOM property normalizes whitespace.
The short meta charset="utf-8" declaration must occur entirely within the first 1024 bytes. Other meta elements form name and content pairs or narrowly defined directives; an arbitrary name does not guarantee that a browser or search engine consumes it.
The first base element with href sets the fallback base URL, and the first with target sets the default hyperlink target. A link with the appropriate rel can represent a hyperlink or external resource; a wrong relation, type, or CORS policy can prevent use.
The example reads document.title and document.baseURI, then resolves a relative link. Only the first base with href affects the result, although the DOM retains both elements.
Examples
<!doctype html>
<html><head>
<base href="https://example.test/docs/">
<base href="https://ignored.test/">
<title> CKTIS
Reference </title>
<meta name="description" content="Knowledge base">
</head><body>
<a id="chapter" href="chapter">Chapter</a>
<output id="result"></output>
<script>
const chapter = document.querySelector("#chapter");
result.textContent = `title=${document.title}; base=${document.baseURI}; resolved=${chapter.href}; bases=${document.querySelectorAll("base").length}`;
</script>
</body></html>
Result
title=CKTIS Reference; base=https://example.test/docs/; resolved=https://example.test/docs/chapter; bases=2
The executed example verifies title normalization and base selection; it does not measure SEO, linked-resource fetching, or network encoding detection.