Encylopedia Jr
The Kid's Encyclopedia: A great information resource for kids, schools, and anybody who wants to learn.
Kids: Be sure to check with your parents or teachers before using this or any web site.



Browse by Subject
Browse by Letter


This site is designed to be an encyclopedia for use by kids. Kids and children, please ask your parents or teachers prior to using this site or the internet.







Indentation

From Encyclopedia Jr, free information reference for Kids

[edit] English

An indentation can mean two things:

  • To make notches in something or form deep recesses in a coastline for instance.
  • To place text farther to the right to separate it from surrounding text.

The first meaning is also applied in hardness measurement as in indentation hardness.

For an example of the second meaning, this is an indentation of one space:

Indented block

and this is an indentation of two spaces:

Indented block 2

In the written form of many American and European languages, an indentation is often used at the beginning of a line to signal the start of a new paragraph.

Outdentation is a neologism used in computer circles to describe placing text back to the left again.

[edit] Indentation in programming

In computer programming languages, indentation is used to format program source code in order to improve its readability. Indentation is generally only of use to programmers; compilers and interpreters rarely care how much whitespace is present in between programming statements. However, certain programming languages rely on the use of indentation in order to demarcate programming structure, often using a variation of the Off-side rule. The Haskell, Occam, and Python programming languages rely on indentation in this way.

Debates over where to indent, whether to use spaces or tabs, and how many spaces to use are often hotly debated among programmers, leading some to classify indentation as a religious war. Different indentation styles are commonly used. Recently, a third method of indentation was proposed, called elastic tabstops.


Citation Help

APA Style: Reference List

Encyclopedia Jr (2007). Indentation. Retrieved May 27, 2012, from http://www.encyclopediajr.com/wikiarticle/i/n/d/indentation.

MLA Style: Works Cited Page

"Indentation." Encyclopedia Jr. 2007. 27 May 2012 <http://www.encyclopediajr.com/wikiarticle/i/n/d/indentation>.


This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article indentation.


Encyclopedia Jr Home Page  Parents and Teachers  About Encyclopedia Junior 


This site is a product of TSI, Copyright 2012, All Rights Reserved. By using this site you agree to the Terms of Use.