• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Chapter 2. Adding Text and Links > Adding Content to the Template

Adding Content to the Template

Example 2-18 takes the template created in Chapter 1, “Building an HTML Page,” and has added some of the features introduced in this chapter so you can get context for them in a working document.

Example 2-18. Adding content to the template

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 


<title>your site : location within site : topic title</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="your, keywords, here" />
<meta name="description" content="your description here" />
<meta name="author" content="your name here" />




<p>Here are a few things I enjoy.</p>

<h2>A poem . . .</h2>

<p>What earthly tongue, and, oh! what human pen<br />
Can tell that scene of suffering, too severe.<br />
'Tis ever present to my sight, oh! When<br />
Will the sound cease its torture on mine ear?</p>

<h2>A recipe</h2>

<p>I like this recipe so much, I tell all my friends about it!</p>

<h3>Swirled coffee cake</h3>

<li>Beat eggs, flour, butter and sugar until creamy</li>
<li>Pour into round baking pan</li>
<li>Slowly add and swirl any one or combination of the following ingredients:
     <li>chocolate sauce</li>
     <li>cinnamon crunchies,</li>
     <li>1 tsp nutmeg</li>
<li>Place in oven and bake for 40 minutes</li>

<h2>Unusual terms</h2>

     <dt>Furkid (n)</dt>
     <dd>A pet treated as though it were one's child.</dd>

     <dt>Nearshoring (v)</dt>
     <dd>Restructuring a company's workforce by moving jobs to a nearby
         foreign country.</dd>
     <dt>Neurodiversity (n)</dt>
     <dd>The variety of non-debilitating neurological behaviors and
         abilities exhibited by the human race.</dd>

<h2>When friends get in touch . . .</h2>

<p><a href="mailto:molly@molly.com?subject=feedback">email molly</a></p>





Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint