rootrelative
Rootrelative is a term used in web development to describe a path or URL anchored to the root of the domain. A rootrelative path begins with a forward slash and resolves from the domain’s root directory, not from the current document location or a full external URL. For example, /images/logo.png is rootrelative; images/logo.png is relative to the current page, and http://example.com/images/logo.png is an absolute URL.
In practice, rootrelative paths are common in HTML, CSS, and templating to keep links portable across environments.
Behavioral note: the browser resolves a path starting with / against the domain root. The document’s subdirectory
Benefits include easier maintenance when switching domains or deploying across environments, and reduced risk of hard-coded