This is an old revision of the document!
In this exercise you'll learn how to create a heading and some more formatting styles that make a heading pop.
We'll continue to use the code you've been working on in jsfiddle.
My Story <p style="text-align:right"> My friend Pablo has a <em style="color:red; font-weight:700">pet dog</em> called Sam who likes to have his tummy scratched. When they go to the park, <strong>he likes to chase a <em>ball</em>.</strong> He rolls in the dirt so Pablo has to wash him when they get home. </p> <p style="text-indent:50px"> On Sundays they drive to the <sup>mountains</sup> where he runs around smelling the grass and <span style="color:blue;">wagging his tail</span>. He gets so tired that he sleeps all the way home. </p>
<h1>My Story</h1>
<h1 style="font-family:Arial,sans-serif;">My Story</h1>
<h1 style="font-family:Arial,sans-serif; color:green;">My Story</h1>
<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em;">My Story</h1>
em
is the standard size for normal font, so this is 1.7 times bigger than the letter text (but still smaller than h1 usually is).<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline;">My Story</h1>
<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; text-transform:uppercase;">My Story</h1>
text-transform:uppercase;
to get small-caps to work. You can't have both.<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps;">My Story</h1>
<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 3em;">My Story</h1>
<h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 2em; text-shadow:2px 2px #ff0000;">My Story</h1>