Skip to content

Commit

Permalink
mention single or double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pilgrim committed Jul 27, 2009
1 parent 0c06243 commit 535fa95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ <h2 id=xml-intro>A 5-Minute Crash Course in XML</h2>
<pre class=nd><code class=pp>&lt;foo>&lt;/foo>
&lt;bar>&lt;/bar></code></pre>

<p>Elements can have <i>attributes</i>, which are name-value pairs. Attributes are listed within the start tag of an element and separated by whitespace. <i>Attribute names</i> can not be repeated within an element. <i>Attribute values</i> must be quoted.
<p>Elements can have <i>attributes</i>, which are name-value pairs. Attributes are listed within the start tag of an element and separated by whitespace. <i>Attribute names</i> can not be repeated within an element. <i>Attribute values</i> must be quoted. You may use either single or double quotes.

<pre class=nd><code class=pp><a>&lt;foo <mark>lang='en'</mark>> <span class=u>&#x2460;</span></a>
<a> &lt;bar <mark>lang='fr'</mark>>&lt;/bar> <span class=u>&#x2461;</span></a>
<a> &lt;bar <mark>lang="fr"</mark>>&lt;/bar> <span class=u>&#x2461;</span></a>
&lt;/foo>
</code></pre>
<ol>
Expand Down

0 comments on commit 535fa95

Please sign in to comment.