Web 101 - Class 2 - Spacing and Entities | Back to Class

Topic 1: Review of Last Week

We began with a review of last week - Web 101 - Class 1 - Tags, Tables, Images, Links, and Styles

Topic 2: Spacing

See what happens when there are extra spaces between words in the source.

<p>See what   happens   when   there are extra spaces between words in the source.</p>
They are automatically reduced to a single space on rendering.

Topic 3: Non Breaking Spaces

To force extra spaces      use non-breaking spaces.

<p>To force extra spaces&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use non-breaking spaces.</p>
Code generators such as Dreamweaver and FrontPage abuse this behavior.

Topic 4: Entities

&nbsp; is an entity. Entities begin with an ampersand and end with a semi-colon. The definitive list can be found at HTML Entities. In fact the ampersand symbol (&) is an entity.
In fact the ampersand symbol (&amp;) is an entity.
So are pound (£), yen (¥), and copyright (©).
So are pound (&pound;), yen (&yen;), and copyright (&copy;).

Topic 5: Meta Data

Metadata is the stuff that appears in the <head> tag. This is where the page title goes like this:
<title>Web 101 - Class 2 - Spacing and Entities</title>