HTML – Entities

51

HTML Code:

  • Each begins with a ampersand - &
  • Then the entities name - copy
  • And finally a semicolon - ;

Copyright:

Combine © to make – © – Copyright symbol.

Expect complications if you forget to include all three parts of an entity.

Additional Spaces and <>.

As you have may have learned within paragraph and heading tags, browsers will only recognize and format 1 space between words reguardless of how many you may actually type in your coded HTML. An entity exists for placing additional spaces.

Here’s an example.

HTML Code:

<p>Everything that goes up, must come &nbsp;&nbsp;&nbsp;&nbsp;down!</p>

Spaces:

Everything that goes up, must come    down!

In HTML we use less than and greater than characters to create tags, so to use them on your web site you will need entities.

HTML Code:

<p>
Less than - &lt; <br />
Greater than - &gt; <br />
Body tag - &lt;body&gt;
</p>

Less than Greater than:

Less than – <
Greater than – >
Body tag – <body>

HTML - Entities

loading...
SHARE

LEAVE A REPLY