HTML Text Layout

These tags will let you control the layout.

HTML

EXPLANATION

<p>text</p>

Adds a paragraph break after the text.
(2 linebreaks).

<p align=”left”>text</p>

Left justify text in paragraph.

<p align=”center”>text</p>

Center text in paragraph.

<p align=”right”>text</p>

Right justify text in paragraph.

text<br>

Adds a single linebreak where the tag is.

<nobr>text</nobr>

Turns off automatic linebreaks
- even if text is wider than the window.

text<wbr>

Allows the browser to insert a linebreak
at exactly this point
- even if the text is within <nobr> tags.

<center>text</center>

Center text.

<div align=”center”>text</div>

Center text.

<div align=”left”>text</div>

Left justify text.

<div align=”right”>text</div>

Right justify text.

You can leave a response, or trackback from your own site.
Print This Post Print This Post



Further Reading

331 views

Leave a Reply

Twitter Delicious Facebook Digg Stumbleupon Favorites More
105 queries in 5.056 seconds.