Placeholder text

Updated: 10/07/2019 by Computer Hope

Placeholder text may refer to any of the following:

1. In computer programming, a placeholder is a character, word, or string of characters that temporarily takes the place of the final data. For example, a programmer may know that she needs a certain number of values or variables, but doesn't yet know what to input. She can use a placeholder as a temporary solution until a proper value or variable can be assigned.

A placeholder in programming code may also be used to indicate where specific code needs to be added, but the programmer has not yet written the code. The placeholder reminds the programmer where to add code, or can let other programmers know that additional code still needs to be added in general.

Placeholders may also be commented out to prevent the computer program from executing part of the code.

Placeholder examples

Examples of placeholders in computer programming include the following.

  • < insert splice function here >
  • <-- add interest calculation code here -->
  • 'dim variable1 as string
  • ;I need to fix this section of code
Lorem ipsum placeholder

2. Alternatively called dummy text or filler text, placeholder text is text that temporarily "holds a place" in a document for the purpose of typesetting and layout. It helps preview fonts, spoof an e-mail spam filter, or reserve a specific place on a web page or other document for images, text, or some other object. For example, the designer of an online newsletter may fill a template with dummy text to approximate the final layout. One of the most common filler texts is lorem ipsum.

Dummy, Spam, Template, Text, Typography terms, Untitled