Writing HTML with Macintosh TextEdit

Screenshot of Apple's TextEdit
Screenshot of Apple's TextEdit. (JollyRogerBay/Wikimedia Commons/BSD)

If you use a Mac, you don't need to buy or download an editor to write HTML. You have a perfectly functional editor built into your operating system – TextEdit. For many people this is all the HTML editor they will ever need.

Creating a Web Page With TextEdit

  1. Open TextEdit.
    • Open a Finder window
    • Switch to the Applications folder
    • Scroll down to TextEdit and double-click on it
  2. Change the format to plain text
    TextEdit defaults to a rich text format, so you need to switch it to plain text to write HTML.
    • Open the Format tab
    • Choose "Make Plain Text"
    • You can also hit Shift-Apple-T to switch to plain text
  1. Start writing your HTML.

    Remember that you need to be more careful than in an actual HTML editor. You won't have elements like tag completion and validation.

  2. Save your HTML to a file.

    This is the tricky part. TextEdit normally saves files as .txt. But since you're writing HTML, you need to save the file as .html.

    • Go to the File menu
    • Choose Save As... (or Shift-Apple-S)
    • Change the file extension from .txt to .html
    • A popup will ask you if you want to append the extension ".txt" to the end. Choose "Don't Append"

Remember, HTML isn't terribly hard to learn and you don't need to buy any additional software or other items in order to put up your web page. With TextEdit, you can write complex or simple HTML. And once you have learned HTML, you can edit pages as quickly as someone with an expensive HTML editor.

mla apa chicago
Your Citation
Kyrnin, Jennifer. "Writing HTML with Macintosh TextEdit." ThoughtCo, Jun. 11, 2017, thoughtco.com/writing-html-with-textedit-3469897. Kyrnin, Jennifer. (2017, June 11). Writing HTML with Macintosh TextEdit. Retrieved from https://www.thoughtco.com/writing-html-with-textedit-3469897 Kyrnin, Jennifer. "Writing HTML with Macintosh TextEdit." ThoughtCo. https://www.thoughtco.com/writing-html-with-textedit-3469897 (accessed October 23, 2017).