How to Align Justify HTML

By using the DIV tag when writing HyperText Markup Language (HTML) code, you can align text on your website by using justification. Justification refers to the type of alignment you find in most publications such as books or magazines. When displaying justified text, Web browsers stretch individual lines so that they appear aligned along a left and right margin. You can align text using justification in just a few steps.

Instructions

    • 1

      Open your favorite HTML or text editor, such as Notepad, and load the HTML file you wish to edit.

    • 2

      Place the following code before the text you wish to justify:

      <div align="justify">

    • 3

      Place the following code after the text you wish to justify:

      </div>

    • 4

      Save your HTML file and upload it to your Web server by using an FTP program or your hosting company's file manager interface.

Related Searches:

References

Comments

You May Also Like

  • How to Align Text in MS Word

    Click on the Formatting Palette or the Formatting Toolbar to align text. You can click on "Aligh Left," "Align Center," "Align Right,"...

  • How to Justify Text in HTML

    Most websites have text that is left justified. If you look at the left side of the text you will find the...

  • Justified Paragraphs in HTML

    Comments. Video Transcript. Now, we could also use the p-align feature to justify our text. And to do that I had to...

  • How to Align Text in HTML

    When HTML and the Internet were first developed, they were for sharing of text only. No one expected to be able to...

  • How to Justify Text in Word

    Microsoft Word offers different styles of text alignment within its software program. The default setting for text is left justified, which means...

  • How to Set Justified Alignment

    Hypertext Markup Language, or HTML, gives you the ability to define the structure and content of Web pages. It also allows you...

  • What is Shared Hosting?

    Shared web hosting is the most affordable solution for hosting your website. But because of the nature of a shared web host,...

Related Ads

Featured