HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Align Pictures
Align Tables
Align Text
Align Text
261
Align Left
Description
This tag will align your text to the left of the screen. The starting tag is <P ALIGN="LEFT"> and the closing tag is </P>. The text between these tags is what is aligned to the left. This tag also causes a double space (paragraph) at the end of the text.
Code
<P ALIGN="LEFT">
Hello World!
</P>
Output
Hello World!
Practice
<P ALIGN="LEFT"> Hello World! </P>
Align Right
Description
This tag will align your text to the right of the screen. The starting tag is <P ALIGN="RIGHT"> and the closing tag is </P>. The text between these tags is what is aligned to the right. This tag also causes a double space (paragraph) at the end of the text.
Code
<P ALIGN="RIGHT">
Hello World!
</P>
Output
Hello World!
Practice
<P ALIGN="RIGHT"> Hello World! </P>
Align Center
Description
This tag will align your text to the center of the screen. The starting tag is <P ALIGN="CENTER"> and the closing tag is </P>. The text between these tags is what is aligned to the center. This tag also causes a double space (paragraph) at the end of the text.
Code
<P ALIGN="CENTER">
Hello World!
</P>
Output
Hello World!
Practice
<P ALIGN="CENTER"> Hello World! </P>
Center
Description
This tag does the same thing as the previous tag but it is shorter, and there is no added paragraph space at the end of the text. The starting tag is <CENTER> and the closing tag is </CENTER>. The text between these tags is what is aligned to the center.
Code
<CENTER>
Hello World!
</CENTER>
Output
Hello World!
Practice
<CENTER> Hello World! </CENTER>
Advertisements