Skip to content
Permalink
Browse files

[e] (0) <html> example

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 edd2791fd8462755ff50243dbfd8325ce0a874bc
Showing with 42 additions and 0 deletions.
  1. +21 −0 index
  2. +21 −0 source
21 index
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>

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.
You can’t perform that action at this time.