HTML Element: <html>
[this page | pdf | back links]
The HTML <html> element is the root node
of an HTML document. Only <!DOCTYPE>
elements should appear outside it. It tells the browser that the document is an
HTML document.
The attributes it can take
(other than HTML
global attributes and HTML event attributes)
include:
Attribute
|
Description
|
More
|
manifest
|
Specifies address of
document’s cache manifest (for offline browsing)
|
Here
|
xmlns
|
Indicates the XML
namespace attribute (if the content needs to conform to XHTML); is not an
HTML attribute as such and is added by default if needed
|
Here
|
To create or access such
an element in JavaScript
see here. The
corresponding HTML DOM
object supports standard
DOM properties and methods. The default style applicable to this element is
shown here.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
A html element is included in this page
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Elements