This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Paragraphs
Aligning Text
Bold Text
Italic Text
Line Breaks
Comment
Links
Mailto



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson B: Messing with Your Text
Aligning Text


<p align=left> aligns a paragraph to the left

<p align=right> aligns a paragraph to the right

<p align=center> centers a paragraph

Remember when you learned about the <p> tag? Well, there was something we didn't tell you: Not only does the <p> tag make the text skip down a line, but you can put align inside the tag to make the text of a paragraph scoot over to the left or right or stay in the center.

So if you were to write this in your HTML doc:

<p align=left>I like to watch spiders spin their webs. Spider webs are really neat.

<p align=center>On the other hand, if I see a spider on the floor, I like to step on it and squish it.

<p align=right>I worry sometimes that maybe it's bad karma to squish spiders, especially if they're not trying to bite you or anything.

Then your page will appear like this:

I like to watch spiders spin their webs. Spider webs are really neat.

On the other hand, if I see a spider on the floor, I like to step on it and squish it.

I worry sometimes that maybe it's bad karma to squish spiders, especially if they're not trying to bite you or anything.

Back

Next Page