You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.

Demonstration for first-letter and first-line

Example 1

In the following paragraph, the first line should be green, the rest should be black.

Once upon a time, there was a beautiful golden cat called Maximus. His one mission in life was to rest. He would wake up in the morning, ready to sleep all the way through the day. Then he would wake up at night, and have a nice lie in till the next morning. He thought his life could never have been better, and indeed, it couldn't. He lived happily ever after.

This is what it should have looked like (but possibly wrapping in different places):

Once upon a time, there was a beautiful golden cat called Maximus.
His one mission in life was to rest. He would wake up in the
morning, ready to sleep all the way through the day. Then he would
wake up at night, and have a nice lie in till the next morning. He
thought his life could never have been better, and indeed, it
couldn't. He lived happily ever after.

Example 2

In the following paragraph, the first character should be three times bigger than the rest.

Once upon a time, there was a slick black cat called Charlie. His one mission in life was to eat. He would wake up in the morning, and immediately look to see what he could feast on. He ate chicken, and he ate mouse. He ate anything he could get his teeth into. He thought his life could never have been better, and indeed, it couldn't. He lived happily ever after.

This is what it should have looked like (but possibly wrapping in different places):

Once upon a time, there was a slick black cat called Charlie. His one
mission in life was to eat. He would wake up in the morning, and
immediately look to see what he could feast on. He ate chicken, and he
ate mouse. He ate anything he could get his teeth into. He thought his
life could never have been better, and indeed, it couldn't. He lived
happily ever after.