Horje

Example

href = valid URL potentially surrounded by spaces A base element, if it has an href attribute, must come before any other elements in the tree that have attributes defined as taking URLs, except the html element (its manifest attribute isn't affected by base elements). [Example A] target = valid browsing context name or keyword ( _blank, _self, _parent, or _top) The value of the target attribute is used as the default when hyperlinks and forms in the Document cause navigation.
index.html
Example: HTML
<!DOCTYPE html>
<html>
    <head>
        <title>This is an example for the <base> element</title>
        <base href="http://www.example.com/news/index.html">
    </head>
    <body>
        <p>Visit the <a href="archives.html">archives</a>.</p>
    </body>
</html>




Single Articles
ExampleHTML - The Head Element
ExampleHTML - The Head Element


Related Articles
What is HTML - The Head Element HTML - The Head Element
How to create The HTML <head> Element HTML - The Head Element
How to create The HTML <title> Element in <Head> HTML - The Head Element
How to create The HTML <style> Element in <head> HTML - The Head Element
How to create The HTML <link> Element in <head> HTML - The Head Element
How to create The HTML <meta> Element in Head HTML - The Head Element
What is The HTML Viewport in Head HTML - The Head Element
How to use HTML Viewport in Head HTML - The Head Element
How to create The HTML <script> Element in head HTML - The Head Element
How to create The HTML <base> Element in head HTML - The Head Element

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML - The Head Element
Uploaded by:
Admin