example of indenting

Indenting Examples: How & Why

By Andrew Lopez
AD

Indentation, in the context of formatting text, is the space that is inserted to the left of a block of text. It's a crucial aspect of text layout and structure, helping to create hierarchy, improve readability, and guide readers through complex information. In this article, we'll explore various examples of indentation, their purposes, and best practices to use them effectively.

Indentation serves multiple purposes in written text. It can signal the start of a new paragraph, a quote, a list item, or a block of code. Understanding these applications will help you indent proficiently and appropriately in different scenarios.

Indentation in paragraphs

In many writing styles, the first line of a new paragraph is indented to signal its beginning and distinguish it from the preceding text.

AD
Past Tense of Indent, Past Participle of Indent, V1 V2 V3 V4 V5 Form of Indent
Past Tense of Indent, Past Participle of Indent, V1 V2 V3 V4 V5 Form of Indent
an article in the magazine about shoes
an article in the magazine about shoes
Hanging Indent | Word & Google Docs Instructions
Hanging Indent | Word & Google Docs Instructions

While the specific amount of indentation varies depending on the style guide followed, it typically ranges from 0.5cm to 1cm or one-third to one-half inch. This space makes it clear that a new idea or section is starting and helps maintain continuity in your content.

Indentation with hanging indentation

When writing a list, especially a list of definitions or items with variable-length descriptions, using a hanging indentation can enhance readability. Here's an example:

InDesign - Hyphenation and Justification Settings
InDesign - Hyphenation and Justification Settings
Uses Indeed, Definition and 11 Example Sentences - Lessons For English
Uses Indeed, Definition and 11 Example Sentences - Lessons For English
a screenshot of the references section in microsoft's word editor, with two red arrows pointing to it
a screenshot of the references section in microsoft's word editor, with two red arrows pointing to it
  • Example: Indented by the full tab width
  • Indentation: Spaces inserted at the beginning of a line of text to create a visual hierarchy

Indentation in auto-formatting text editors

Many text editors and word processors have an auto-indentation feature that automatically adds space at the beginning of a line based on the current formatting level or typing action. This feature saves time and ensures consistency in your indentation.

A common use case is when typing a list. After finishing a list item and pressing Enter, the editor automatically indents the new line, making it easier to continue typing the next item without constantly adjusting the indentation manually.

AD

Indentation in quotes and block text

When including a long quote within your text, indenting it can help distinguish it from the surrounding content and make it clear that the words are not your own.

Quickly do hanging indent, first line indent, left right indent and both side indent
Quickly do hanging indent, first line indent, left right indent and both side indent
Hanging Indents in Google Docs or Word (Made Easy) | Bibliography.com
Hanging Indents in Google Docs or Word (Made Easy) | Bibliography.com
a poster with instructions on how to write an instruction for writing and using it in the classroom
a poster with instructions on how to write an instruction for writing and using it in the classroom
two pictures showing the same person holding peanut butter
two pictures showing the same person holding peanut butter
Indeed in a Sentence, Definiton and Example Sentences - Example Sentences
Indeed in a Sentence, Definiton and Example Sentences - Example Sentences
Example Of Letter Of Intent | Template Business
Example Of Letter Of Intent | Template Business

The specific indentation style may vary depending on the style guide you're following. Some common methods include increasing the space before the first line of the quote and adding a hanging indentation to the rest of the lines. Here's an example:

“Gone are the days when someone would make a mistake without realizing it. Now, you have to be on your toes every hour of the day, alert, wide awake and sharp as a razor.” (V.S. Naipaul)

Indentation in poetry

In poetry, indentation is often used to create structure, signal the start of a new verse, or emphasize specific words. It's a powerful tool for adding visual interest and guiding the reader's eye through the poem.

AD

Rhyme schemes and rhythmic patterns can be highlighted with indentation, as seen in this example of a haiku:

an open book is shown with the text section highlighted in black and white, as well as
an open book is shown with the text section highlighted in black and white, as well as
Silent moon,
a crow's feet
across the snow.

Indentation in code and program listings

In computer programming, indentation is crucial for signaling the structure and hierarchy of code blocks. It represents the depth of nesting for control structures like loops and conditional statements.

Using consistent indentation ensures your code is easily readable and understandable to others. Here's a simple Python example illustrating indentation:

AD
if daylight_hours > 7:
    print‘It’s a bright day today!'
    if temperature > 20:
        print‘Don't forget to wear sunscreen!'

Proper use of indentation significantly improves the readability and maintainability of your code. In programming, indentation is not just a style choice; it's a convention that ensures clear communication of the code's logic.

Best practices for indentation

While there's no one-size-fits-all rule for indentation, following these best practices will help you make your text more readable and engaging:

Consistency

Once you've chosen an indentation style, stick to it throughout your document. Inconsistent indentation can confuse readers and undermine the visual hierarchy of your content.

Use logical breaks

Indenting at logical breaks, such as the start of a new paragraph, a list item, or a quote, helps guide readers through your text and makes it easier to scan and understand.

Be mindful of accessibility

While indentation serves an essential purpose in creating visual hierarchy, it's crucial to consider users who navigate web content using screen readers. In some cases, relying solely on indentation to convey structure may make your content less accessible. Balancing visual clues with semantic HTML tags ensures your content is accessible to the widest audience possible.

Indentation is a versatile and fundamental text layout tool that improves readability, signals structure, and enhances the overall presentation of your content. Whether you're writing prose, poetry, or code, understanding how and when to indent empowers you to communicate effectively and engage your audience.

AD