Uppercase

Updated: 04/09/2024 by Computer Hope
Uppercase wording example

Alternatively known as caps and capital and sometimes abbreviated as UC, uppercase is a typeface of larger characters. For example, typing a, b, and c shows lowercase, and typing A, B, and C shows uppercase. To type in uppercase, you can use either the Caps Lock key or the Shift key on the keyboard.

Tip

It's bad etiquette to have everything you type in ALL UPPERCASE CHARACTERS. When reading anything typed in all caps, most readers assume you are YELLING or find the text hard to read.

Note

When discussing a computer keyboard key, CAPS may label the CapsLock key.

Why is capitalization important?

Passwords

Passwords are case-sensitive to add an extra level of security. If your caps lock key is enabled while creating your password but not when you log in the next day, you won't be able to access your account.

File names, directories, and paths

When dealing with file names, directories, and paths in many operating systems and paths, they are case-sensitive. For example, in Microsoft Windows, nothing is case-sensitive. However, when uploading a file to the Internet, the files and directories become case-sensitive. For example, the file name of this web page is "uppercase.htm" and must be typed in all lowercase in the URL (uniform resource locator) while online. However, if you were viewing the file locally on a Windows computer, the capitalization would not matter.

Measurements

When dealing with computer and other measurements, capitalization is important for identifying the exact type of measurement. For example, "Mb" (short for megabit) and "MB" (short for megabyte) are different types of measurements with different values.

Commands

Command line commands in operating systems like Linux are case-sensitive, which means if you typed "Ls" to list a file, you would get an error since the ls command is all lowercase.

Programming functions

In earlier programming languages like FORTRAN (Formula Translation), the keywords and the names of data objects needed to be uppercase because punch card machines did not have a Shift key.

Acronyms

To help differentiate an acronym from other words in a sentence, they are typed in uppercase. For example, the acronym RAM (random-access memory) is typed in all uppercase to help identify the word as an acronym.

Using the uc function

Many programming and scripting languages use the uc function to convert a variable into uppercase. For example, the example below is how the uc and ucfirst functions can be used in Perl.

my $example = "hello world";
print "$example\n";
$example = ucfirst($example);
print "$example\n";
$example = uc($example);
print "$example\n";

The $example variable is set to all lowercase in the above example. The third line uppercases the first character, making the text "Hello world," and the fifth line uppercases the whole string, making the text "HELLO WORLD."

What is the difference between capitalize and uppercase?

Capitalize is used when describing the first letter of a word or a single letter. For example, the first letter in this sentence is capitalized. Uppercase describes a word with every letter being capitalized. For example, the acronym CPU (central processing unit) is in uppercase.

When should I capitalize text?

Below are general rules that should be followed when capitalizing words.

  • Always capitalize the first word of a sentence.
  • The first letter should be capitalized if the word is a proper noun or derived from a proper noun. For example, a name, book, brand, movie, place, product, and trademark are proper nouns and should be capitalized.
  • Capitalize the first letter of a quote unless it is part of the sentence.
  • Roads and streets should be capitalized.
  • A person's title (not occupation) before their name should be capitalized.

Below are times capitalization should not be used.

  • Never use uppercase for emphasis. Instead, italicize any text you want to emphasize.
  • When writing the full form of an acronym, each word of the acronym should be lowercase unless it is a proper noun.
  • Do not capitalize the word the when used before a proper noun.

Should titles and headings be capitalized?

With formal writing, the titles and headings should use a title case. All other forms of writing should follow the rules set by your style guide. For example, Computer Hope follows the Microsoft Manual of Style and uses sentence case for its headings.

What is all caps?

All caps is a font effect in word processing programs like Microsoft Word that changes a font's appearance to uppercase. For example, the text "Computer Hope" can be made uppercase without retyping by highlighting it and adding the all caps font effect to get "COMPUTER HOPE."

Uppercase in CSS

On a website in HTML (hypertext markup language) and CSS (cascading style sheets), CSS can change any text into all uppercase. Use the text-transform property with the "uppercase" setting, as shown below, to make this change.

<p style="text-transform: uppercase">The quick brown fox jumps over the lazy dog.</p>

Using the above code, would give you the following.

The quick brown fox jumps over the lazy dog.

If you only wanted to capitalize only the first letter of every word, you could use "capitalize" instead of "uppercase," as shown below.

The quick brown fox jumps over the lazy dog.

What is small caps?

Small caps is a font effect that changes the appearance of text to uppercase and makes any letters already capitalized slightly taller. Below are different examples of the CSS3 font-variant-caps property used to change the text appearance, including making text small caps on a web page.

Note

These examples use CSS3, which is not supported in older browsers.

Normal (normal) text example

The quick brown fox jumps over the lazy dog.

Small caps (small-caps) example

The quick brown fox jumps over the lazy dog.

All small caps (all-small-caps) example

The quick brown fox jumps over the lazy dog.

Petite caps (petite-caps) example

The quick brown fox jumps over the lazy dog.

All petite caps (all-petite-caps) example

The quick brown fox jumps over the lazy dog.

Unicase (unicase) example

The quick brown fox jumps over the lazy dog.

Titling (titling) example

The quick brown fox jumps over the lazy dog.

To use any of these examples, use the text in parenthesis shown above in your CSS code. For example, below is an example of the paragraph tag using the style attribute with the CSS properties for small caps.

<p class="tab" style="font-variant-caps: small-caps">The quick brown fox jumps over the lazy dog.</p>

Should I use "uppercase" or "upper case" in my writing?

Both "uppercase" and "upper case" are correct. However, only use one form in your writing. According to The Associated Press Stylebook and the Microsoft Manual of Style, write "uppercase" as one word when used as an adjective or noun.

Caps lock, Case, Case-sensitive, Character, Computer acronyms, Font, Lowercase, Proper case, Title case, Typography terms, UC Browser