Placeholder text

Updated: 02/27/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 may be used to take up space until such a time that the space is needed. 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 the code, or it can be include to let other programmers know that additional code still needs to be added any programmer 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
Placeholder text

2. Alternatively referred to as 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 may be used to 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 have a template that they fill with dummy text so they can get an idea of how the layout of a page looks. One of the most common filler texts is lorem ipsum.

Dummy, Spam, Template, Text, Typography terms