File names and extensions

In content for Windows and the Mac, use title capitalization for file names, folders, and drive names. Use all lowercase for extensions.

Microsoft style

.htm file

C:\Taxes\April2010

My Tax File, 2010

It is all right to use internal capitalization for readability in concatenated file names if they cannot be confused with function names.

Microsoft style

MyTaxFile

Mytaxfile

Do not use the file name extension to identify the type of file under discussion unless you have no other choice. Use more descriptive language instead.

Microsoft style

A Microsoft Excel workbook contains one or more spreadsheets. Store the result as a text file.

Not Microsoft style

An .xlsx file contains one or more spreadsheets. Store the result as a .txt file. ...

Get Microsoft® Manual of Style, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.