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
tags. The
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.


Post a Comment
Your feedback is always valuable for us :