Skip to content

Commit

Permalink
[e] (0) <html> example
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3784 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 9, 2009
1 parent 60b87bc commit edd2791
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
21 changes: 21 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit edd2791

Please sign in to comment.