Skip to content
Browse files

[e] (0) <html> example

git-svn-id: http://svn.whatwg.org/webapps@3784 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 60b87bc commit edd2791fd8462755ff50243dbfd8325ce0a874bc @Hixie Hixie committed
Showing with 42 additions and 0 deletions.
  1. +21 −0 index
  2. +21 −0 source
View
21 index
@@ -10128,6 +10128,27 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
later <code><a href=#the-base-element>base</a></code> elements cannot affect the <a href=#resolve-a-url title="resolve a url">resolving of relative URLs</a> in <code title=attr-html-manifest><a href=#attr-html-manifest>manifest</a></code> attributes, as the
attributes are processed before those elements are seen.</p>
+ <div class=example>
+
+ <p>The <code><a href=#the-html-element-0>html</a></code> element in the following example declares
+ that the document's language is English.</p>
+
+ <pre>&lt;!DOCTYPE html&gt;
+<strong>&lt;html lang="en"&gt;</strong>
+&lt;head&gt;
+&lt;title&gt;Swapping Songs&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;h1&gt;Swapping Songs&lt;/h1&gt;
+&lt;p&gt;Tonight I swapped some of the songs I wrote with some friends, who
+gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
+&lt;/body&gt;
+<strong>&lt;/html&gt;</strong></pre>
+
+ </div>
+
+
+
<h3 id=document-metadata><span class=secno>4.2 </span>Document metadata</h3>
View
21 source
@@ -10595,6 +10595,27 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
title="attr-html-manifest">manifest</code> attributes, as the
attributes are processed before those elements are seen.</p>
+ <div class="example">
+
+ <p>The <code>html</code> element in the following example declares
+ that the document's language is English.</p>
+
+ <pre>&lt;!DOCTYPE html>
+<strong>&lt;html lang="en"></strong>
+&lt;head>
+&lt;title>Swapping Songs&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>Swapping Songs&lt;/h1>
+&lt;p>Tonight I swapped some of the songs I wrote with some friends, who
+gave me some of the songs they wrote. I love sharing my music.&lt;/p>
+&lt;/body>
+<strong>&lt;/html></strong></pre>
+
+ </div>
+
+
+
<h3>Document metadata</h3>

0 comments on commit edd2791

Please sign in to comment.
Something went wrong with that request. Please try again.