Skip to content

Commit

Permalink
Merge pull request #376 from leenacha/patch-1
Browse files Browse the repository at this point in the history
Clarify HTML entity example
  • Loading branch information
despo committed Dec 13, 2017
2 parents 778416e + 423a0be commit d179c41
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions html/lesson1/tutorial.md
Expand Up @@ -272,16 +272,14 @@ One way is to use **HTML entities**. These are made up of an ampersand, a name,

You can also use a numerical format to produce special characters. [Here's a list](http://htmlandcssbook.com/extras/html-escape-codes/) of some common entities.

Add a small rhyme to your page, wrapped with quotes using HTML entities.
Add a small rhyme to your page, in which the first sentence says "The Owl & the Pussy-cat" instead of "The Owl and the Pussy-cat" using HTML entities for the ampersand: `&`.

```html
<div>
<p>
<strong>
<em>
&quot;A wise old owl sat on an oak; The more he saw the less he spoke; <br>
The less he spoke the more he heard; Why aren't we like that wise old bird?&quot;
</em>
"The Owl &amp; the Pussy-cat went to sea <br>
In a beautiful pea-green boat"
</strong>
</p>
<small>&mdash; nursery rhyme</small>
Expand Down

0 comments on commit d179c41

Please sign in to comment.