Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

I am new to web development. When I save a file as a .htm file in Notepad, should I save it as a Text Document or as All Files? Thank you.?

Update:

What's the difference? Does it matter? I have read to always save as UTF-8, as well; is that good advice? Thanks.

9 Answers

Relevance
  • Anonymous
    3 years ago
    Favorite Answer

    In Notepad on Windows, if you save something as "Text Document", it will automatically append ".txt" to it.

    So if you name your file "myfile.htm", it will actually be saved as "myfile.htm.txt".

    Since Windows hides file extensions, it will look like "myfile.htm" and you'll probably be confused, but that's just because the ".txt" will be hidden. It will have a page-like logo representing it is a text document.

    By saving it as "All Files", Notepad won't append ".txt" so your file will properly be saved as "myfile.htm". But again, the ".htm" will be hidden and it will appear as simply "myfile" but it should have a browser logo on it indicating it's a web-related file.

    Also, I'd highly recommend downloading something like Notepad++ on Windows and not using straight-up Notepad. It will provide a significantly better coding experience.

  • 3 years ago

    Go to Folder Option ...

    Then Click View Option

    Click To Unmark The hidden File Extension

  • Anonymous
    3 years ago

    > I have read to always save as UTF-8, as well;

    The ASCII codes for A - Z, a - z and 0 - 9 are pretty standard, but the codes for some punctuation marks vary. If you've ever seen a web page with a Euro currency sign,or a Philippine peso sign, or a Japanese Yen sign where it should have an apostrophe, you've seen a page that stated one code and used another. The "smart quotes" that you see in MS Word - the front set points forward, the back set points back - don't translate well in HTML.

    > Since Windows hides file extensions...

    It's a REAL good idea to go in and cripple that option. You can spend many minutes wondering why "picture.jpg" doesn't show up on your web page, only to discover its name is really "picture.jpeg".

  • Anonymous
    3 years ago

    as files

  • How do you think about the answers? You can sign in to vote the answer.
  • ?
    Lv 7
    3 years ago

    "should I save it as a Text Document or as All Files"  Ignore that selection entirely.  Type the filename, including .HTM or .HTML, and enclose the entire filename in quotes.  For web files, always select UTF-8 encoding, as that is the standard for HTML.

    If you don't specify the character encoding in the HTML document, i.e.,

      <head>

        <meta charset="UTF-8">

    or

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

      </head>

    then the browser can determine that UTF-8 is used by noting the 3-byte file header EFBBBF, which is the UTF-8 file signature.

  • keerok
    Lv 7
    3 years ago

    Select "All Files" then save as ".htm".

  • Lv 7
    3 years ago

    All Files. just be sure you tack the .htm on the end...

    although, if you mess it up, you can just rename the file. all html files are plain text files...

  • Anonymous
    3 years ago

    Save it as "All Files"

    Otherwise Notepad will 'helpfully' add the .txt extension; so you'll end up with files called "index.htm.txt" and your browser will display the source code as plain text.

    To be honest, Notepad is far from ideal for HTML use. You might want to try an alternative editor such as Notepad++ which has features such as multiple tabs, syntax highlighting, auto-complete etc.

  • 3 years ago

    as all files

Still have questions? Get your answers by asking now.