HTML Basics

HTML Editors

You can write HTML in any text editor, but a good code editor makes the job far easier with colour highlighting and error hints. Here are your options and how to get started.


What is an HTML Editor?

An HTML editor is a program you use to write HTML code. It can be as simple as a plain text editor or as powerful as a professional code editor with autocomplete, live preview, and extensions.

Popular Editors

EditorBest forCost
VS CodeBeginners and professionals alike; huge extension libraryFree
Sublime TextFast, lightweight editingPaid (free trial)
Notepad (Windows)Absolute basics with zero setupFree
TextEdit (Mac)Quick edits on macOS (use plain-text mode)Free
CodePenTrying HTML online in your browserFree

Write and Save Your First File

  1. Open your editor and create a new file.
  2. Type or paste some HTML code.
  3. Save the file with a .html extension, for example page.html.
  4. Double-click the saved file to open it in your browser.
Paste this, save as hello.html, and open it
<!DOCTYPE html>
<html>
<body>
  <h1>My editor works!</h1>
</body>
</html>
💡

If you use Notepad, choose 'All Files' in the Save dialog and type the full name hello.html, otherwise it may be saved as hello.html.txt by mistake.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships