Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 05 / 1005%· free preview
Introduction5/7

HTML Setup & Tools

Editor, browser, live preview, dev tools — the smallest setup that makes HTML feel productive.

Definition

HTML needs zero installation — just a text editor and a browser. But the right combo speeds you up by 10x.

ToolPurposeRecommendation
EditorWrite HTMLVS Code (free, fast, huge plugin ecosystem)
BrowserRender HTMLChrome / Firefox (excellent dev tools)
Live PreviewAuto-reload on saveLive Server VS Code extension
LinterCatch typosHTMLHint extension
FormatterAuto-indentPrettier extension
Hello World — End to End

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.

VS Code Tips That Save Hours
  • Emmet abbreviations — type ! then Tab → 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-cursorAlt+Click to add cursors, Ctrl+D to add the next match.
DevTools 101 (Chrome)

Press F12 to open. Five panels you'll use daily:

  1. Elements — live DOM tree; edit HTML in place.
  2. Consoleconsole.log output; run JS commands.
  3. Network — every request, status code, payload.
  4. Sources — set breakpoints, debug JS.
  5. Performance — record + profile a slow page.
Common Mistakes
  • 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.
Interview Questions

Practice Exercises
  1. Boilerplate in 1 second — In VS Code, type ! + Tab. Verify the auto-generated head/body. Hint: requires Emmet, which is built-in.
  2. Live reload test — Start Live Server, change <h1>Hello</h1> to <h1>Updated</h1>, save. Browser should auto-refresh. Hint: no manual reload needed.
  3. 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.

AI-powered recap

Quick recap quiz?

We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.

Ready to move on?
// example library
Want more hands-on snippets in HTML5?
Browse 1 runnable example · across 1 chapter · short, copy-paste-friendly · grouped by topic
Explore examples
// sharpen your skills
Put this into practice right now
LeetCode-style problems, graded difficulty, hints and expected outputs — learning beats passively reading every time.
Start Practicing
// feedback.matters()
Did this lesson help you?