How to Make Indents in HTML

The HTML "definition list" set lets you list several indented items. The indents do not have a numbered list like the "unordered list" tags. Use the "DL," "DD" and "DT" tags to indent in HTML. Using spaces to indent content does not line up the text, so it is not the preferred method for indenting content.

Instructions

    • 1

      Right-click the HTML file you want to edit and click "Open With." Click the HTML editor program you want to use to edit the code.

    • 2

      Scroll down to the section of the file you want to indent. Add the first opening "DL" tag, which starts the definition list. The following code starts with this tag: <dl>

    • 3

      Add the indented text within the definition list HTML code. The following text is indented to the right in the HTML page:

      <dd>This text is indented to the right</dd>

    • 4

      Continue adding text using the "dd" HTML tag. When you finish with the indented text, add the following tag that closes the code and stops the indented text: </dl>

Related Searches:

References

Comments

Related Ads

Featured