June 2025
Beginner
817 pages
31h 30m
English
The base element allows you to define a base URL or destination for all files referenced in the HTML document. By defining such a base URL, you can use a relative or absolute address to the file in the document as if this file were located on the same host or computer as the HTML document.
It sounds more complicated than it actually is. For this reason, let’s take a look at the following simple example that demonstrates the base element in practice:
<!doctype html><html lang="en"> <head> <title>Defining a Base URL</title> <base href="https://static.sap-press.com/img/" target="_blank"> <meta charset="UTF-8"> </head> <body> <img src="rheinwerk-sappress-logo-header.svg" alt="Logo"> </body> ...
Read now
Unlock full access