Interactive online courses HTML Academy
2026-03-09 10:55 Diff

You can also use CSS to control the case of characters: you can make letters lowercase (small) or uppercase (large). This is done using the text-transform property. It can take the following values:

  • lowercase — It formats everything as lowercase;
  • uppercase — It formats everything as uppercase;
  • capitalize — Every word starts with a capital letter;
  • none — It cancels any change to the case.

Why would you change the case of some text using text-transform: uppercase rather than just having it in all capitals in the HTML? Words spelled in ALL CAPITALS are often spelled out by some screen reader software used by blind people, which assumes that they represent an acronym (such as HTML, CSS etc). Converting them with CSS to uppercase doesn’t cause this behaviour in screen readers.

Without further ado – let’s start practicing!