Tools, FAQ, Tutorials:
HTML 'base' Tag/Element
What Is the HTML "base" Tag/Element?
✍: FYIcenter.com
The "base" element is an optional sub-element of the "head" element.
The "base" element specifies a base URL for all the hyper links in XHTML
document. It has one required attribute called "href" to allow you to
specify the base URL.
Here is an example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <base href="http://dev.fyicenter.com/faq/" /> <title>My First XHTML Document</title> </head> <body> <p><img src="/images/fyi.gif"" alt="FYI" /></p> </body> </html>
If you view this document in a browser, the image will be fetched from http://dev.fyicenter.com/faq/images/fyi.gif.
Â
⇒HTML Document Structure and Head Level Tags
⇒⇒HTML Tutorials
2017-06-23, 1115👍, 0💬
Popular Posts:
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
Where to find tutorials on API Management Services at Azure Portal? Here is a list of tutorials to a...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...