HTML Text Layout


HTML Text - HTML Text Layout

HTML Text Layout

<p>Text Paragraph</p>Adds a paragraph break after the text. (2 linebreaks)
<p align="left">Left justify Text</p>Left justify text in paragraph.
<p align="center">Center justify Text</p>Center justify text in paragraph.
<p align="right">Right justify Text</p>Right justify text in paragraph.
line breaks<br>Adds single line break where the tag is.
<nobr>no breaks</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>center text</center>Center Text
<div align="center">center text</div>Center Text
<div align="left">left justify text</div>Left justify Text
<div align="right">right justify text</div>Right justify Text


Note in particular the difference between the <p>and the <div>tags. The <div>tag allows us to justify content without being forced to add a double linebreak. Also, note that these alignment tags are not limited to text. They work on text, images applets or whatever it is that we insert on the page.

Comments

0 Responses to "HTML Text Layout"

Post a Comment

Your feedback is always valuable for us :

About Me

My photo
Vision :- "To be a reputed institution of Smart People who Add Value Across Generation". Mission :- We are dedicated to Spreading Literacy in Society and Helping People choose Value for Money Products for Better Living.We are also adding health awareness and wellness to the society of India." We are distributor and promotors of India's Largest IT products Direct Selling Company with a reach of more than 250 cities nationwide. We have a strong internet R&D base to bring out cost effective and Quality products.