TextEdit Icon

Changing how HTML files are saved

You can set preferences that affect how HTML files are saved.

To choose how to save HTML files:

  1. Choose TextEdit > Preferences, and then click “Open and Save.”

  2. Below HTML Saving Options, choose a document type, a setting for cascading style sheets (CSS), and an encoding.

    If you aren’t sure what to choose, keep the original settings.

  3. Select "Preserve white space" if you want TextEdit to include code to preserve blank areas in your document.

Related Topics

HTML

saving documents