Lesson 2 Write HTML Using Notepad or Textedit
Lesson 2 Write HTML Using Notepad or Textedit
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit
(Mac).
Follow the four steps below to create your first web page with Notepad or TextEdit.
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.
Windows 7 or earlier:
Also change some preferences to get the application to save files correctly. In Preferences >
Format > choose "Plain Text"
Then under "Open and Save", check the box that says "Ignore rich text commands in HTML files".
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for
HTML files).
You can use either .htm or .html as file extension. There is no difference, it is up to you.