how to make all letters capital

How to Make All Letters Capital

By Joshua Davis
AD

In the digital world, capitalizing all letters can often be necessary, be it for a heading, a title, or emphasizing a particular text. However, knowing how to consistently make all letters capital can save you time and create uniformity across your documents or webpages.

There are several methods to achieve this, both at the application and coding levels. Let's delve into three common ways to make all letters capital: using built-in word processors' tools, and applying HTML and JavaScript codes.

Using Built-in Word Processors' Tools

Many word processors offer a feature to change text to uppercase. Here's how you can do it in popular ones:

AD
the font and numbers are outlined in thin lines, with different letters on each side
the font and numbers are outlined in thin lines, with different letters on each side
Free Printable Alphabet Letters for Crafts
Free Printable Alphabet Letters for Crafts
Letter A Worksheets
Letter A Worksheets

Microsoft Word

  1. Highlight the text you want to capitalize.
  2. Go to the 'Home' tab.
  3. Click on 'Change Case' in the Font group, and select 'Uppercase'.

the upper and lowercase letters are lined up with black ink, while the lower one is
the upper and lowercase letters are lined up with black ink, while the lower one is
an old book with some type of writing on it's pages and the letters are in cursive font
an old book with some type of writing on it's pages and the letters are in cursive font

Google Docs

  1. Highlight the text you want to capitalize.
  2. Go to the 'Format' menu.
  3. Select 'Text', and then 'Uppercase'.

AD

Applying HTML and JavaScript Codes

If you're working with web development, you can use HTML and JavaScript to make all letters capital.

Using HTML's 'text-transform' CSS Property

This property changes the capitalization of text. Here's how to use it:

AD
Code Description
<p style="text-transform:uppercase">Your Text</p> Makes all text in the paragraph uppercase.

Using JavaScript's 'toUpperCase()' Method

This method converts a string to uppercase letters. Here's an example:

AD
<button onclick="document.getElementById('demo').innerHTML = 'Hello World'.toUpperCase()</button>
<p id="demo">Click the button to upper case the text</p>

The button triggers a JavaScript function that changes the text to uppercase.

Using Keyboard Shortcuts

If you're quickly typing and want to convert a word to uppercase, keyboard shortcuts can be a great time-saver:

Windows/Linux

  • Hold down the 'Shift' key and press 'F3'.

Mac

  • Press 'Command' + 'Shift' + 'U' (all three keys at once).

Now, whenever you need to make all letters capital, you can easily do so using these methods, depending on the software or environment you're working in. Happy typing!

AD