HTML Setup & Tools
Editor, browser, live preview, dev tools — the smallest setup that makes HTML feel productive.
HTML needs zero installation — just a text editor and a browser. But the right combo speeds you up by 10x.
| Tool | Purpose | Recommendation |
|---|---|---|
| Editor | Write HTML | VS Code (free, fast, huge plugin ecosystem) |
| Browser | Render HTML | Chrome / Firefox (excellent dev tools) |
| Live Preview | Auto-reload on save | Live Server VS Code extension |
| Linter | Catch typos | HTMLHint extension |
| Formatter | Auto-indent | Prettier extension |
Step 1. Install VS Code from code.visualstudio.com.
Step 2. Click Extensions → search Live Server by Ritwick Dey → Install.
Step 3. Make a folder my-site/, open it in VS Code.
Step 4. Create index.html:
html<!DOCTYPE html> <html> <body> <h1>It works!</h1> </body> </html>
Step 5. Right-click the file → Open with Live Server.
Output: Browser opens at http://127.0.0.1:5500/index.html and reloads on every save.
- Emmet abbreviations — type
!thenTab→ expands to a full HTML5 boilerplate. html:5+ Tab → same boilerplate.ul>li*5+ Tab → an unordered list with 5 items.- Wrap with abbreviation — select text,
Ctrl+Shift+P→ "Wrap with Abbreviation" →a[href="#"]. - Multi-cursor —
Alt+Clickto add cursors,Ctrl+Dto add the next match.
Press F12 to open. Five panels you'll use daily:
- Elements — live DOM tree; edit HTML in place.
- Console —
console.logoutput; run JS commands. - Network — every request, status code, payload.
- Sources — set breakpoints, debug JS.
- Performance — record + profile a slow page.
- Writing HTML in Word / Notepad — they add invisible smart-quotes that break tags. Use VS Code or Sublime.
- Editing in DevTools and forgetting to copy back — your in-DevTools edits disappear on reload. Save changes back to the source file.
- Ignoring squiggly underlines — that's HTMLHint pointing at a broken tag.
- Boilerplate in 1 second — In VS Code, type
!+ Tab. Verify the auto-generated head/body. Hint: requires Emmet, which is built-in. - Live reload test — Start Live Server, change
<h1>Hello</h1>to<h1>Updated</h1>, save. Browser should auto-refresh. Hint: no manual reload needed. - DevTools edit — Open any website, right-click any text → Inspect. Double-click the text in Elements panel and change it. Hint: changes are temporary.
💡 Think Like a Programmer: Spend an hour mastering your editor's shortcuts. One keyboard shortcut learned today saves you hours every week for the rest of your career.
Quick recap quiz?
We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.
