Open the HTML page in an HTML editor. If you don't have access to an HTML editor, open the page in Notepad or another text editor.
Most websites have text that is left justified. If you look at the left side of the text you will find the words are in a straight line going down the page. The right side of the text, however, is often uneven, which is not aesthetically pleasing in some website designs. To create an even line of text on the right side of the page you need to justify the text in HTML.
Things You'll Need
- HTML Editor or Text Editor
Navigate to the text you want to justify.
Add <align="justify"> after the paragraph tag, <p>, at the beginning of the paragraph you want justified.
Create a division tag, <div>, around a group of paragraphs you want justified. Type <div align="justified"> at the beginning of the group of paragraphs and </div> at the end of the group of paragraphs.
Save your work and upload the updated page to your website.
- Photo Credit Stockbyte/Stockbyte/Getty Images
How to Justify Text in Blog Posts
Text justification makes slight changes to the distance between the words in a paragraph so that the left and right margins of...
How to Justify Text to the Top of a Table Cell in HTML
Creating a table in HTML is a relatively easy process: simply define the table element, add at least one row, and then...
Justified Paragraphs in HTML
Justifying a paragraph on a web page fits the right and left edges into straight lines of text. Code justified paragraphs on...
How to Justify Text in PHP
PHP allows you to create dynamic pages, and you must include the dynamic layout with the PHP code. You can use the...
How to Align Text in an HTML Table
An HTML table allows you to arrange text, images and other elements in your Web page into rows and columns. Each section...
How to Right Align Text Using HTML
Writing HTML can be a tedious experience, but with a little help, you will soon find you can easily reap the rewards...
How to Justify Text in PowerPoint
The definition of "justified text" is text that is aligned at both the left and right margins, forming a "square" of text....