HTML Essentials
Editors
Choose a comfortable tool for writing HTML.
An HTML editor is any text editor that saves plain text. A simple editor is enough to begin.
Important definitions
- Editor
- A program used to write source code.
- File extension
- The ending that identifies a file type, such as .html.
Syntax
Use this general pattern as a reference:
HTML
index.htmlExamples
Create a file
EXAMPLE 1
Save a new file as index.htmlResultA browser-readable HTML file
COMPLETE EXAMPLE
<!-- Write HTML in a plain-text file -->Expected output
A file named index.html.
Note
Word processors add formatting data and are not code editors.
Tip
Enable automatic indentation and save often.
Common mistakes
- Saving as index.html.txt.
- Editing generated output instead of the source file.