Q:
How do I center or align text?
Text can be centered or aligned using the DIV
tag. Example:
HTML
Code |
What
it looks like |
<DIV ALIGN="center"
>This text will be centered</DIV>
|
This
text will be centered
|
<DIV
ALIGN="right" >This text will
be aligned to the right</DIV>
|
This
text will be aligned to the right |
<DIV
ALIGN="left" >This text will
be aligned to the left</DIV>
|
This
text will be aligned to the left |
Q: How do I specify a font for my text?
The font can be specified using
the FACE attribute of the FONT tag. Example:
HTML
Code |
What
it looks like |
<FONT FACE="arial,helvetica">
This text will apear in the arial or helvetica
font
</font>
|
This
text will apear in the arial or helvetica
font
|
Q: How do I make my text bold or italic?
You can make your text bold or italic using the
B and I tags respectivley. Example:
HTML
Code |
What
it looks like |
<B>This text
will be bold</b>
<I>This text will be italic</i>
|
This
text will be bold This text will
be italic
|
Q: How do I put my text in a numbered
or bulleted list?
You can put your text in a numbered
or bulleted list using the OL or UL tags respectivley.
The LI tag is used for the list elements in either
case. Example:
HTML
Code |
What
it looks like |
<OL>
<LI>First Element
<LI>Second Element
<LI>Third Element
</ol>
<UL>
<LI>First Bullet
<LI>Second Bullet
<LI>Third Bullet
</ul>
|
- First Element
- Second Element
- Third Element
- First Bullet
- Second Bullet
- Third Bullet
|
Q: How do I create a new line or a paragraph?
Hitting return in your HTML document
will not create a new line or new paragraph in
the browser. You must use either the <BR>
tag or <P> tag to create a newline or paragraph.
Example:
HTML
Code |
What
it looks like |
Some text.
<BR> New Line. <P> New Paragraph.
|
Some text.
New Line.
New Paragraph
|
|