Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST

HTML and CSS Environment Setup


HTML & CSS: Environment Setup

You only need a browser and a text editor to start building with HTML and CSS.

This chapter helps you assemble a more productive, but optional toolkit.


Essential tools

  • Modern browser: Chrome, Edge, Firefox, or Safari. Keep it updated for the latest developer features.
  • Code editor: Start with Notepad/TextEdit or move to VS Code, Sublime Text, or any editor you enjoy.
  • Try it Yourself editor: Use W3Schools' built-in editor to experiment quickly without leaving the page.

Prefer an in-browser playground?

Launch W3Schools Spaces to create projects without installing anything.


Set up a local workspace

Windows

  1. Open Notepad (press the Windows key and type "Notepad").
  2. From the File menu choose Save As, then set Save as type to All Files.
  3. Create a folder like htmlcss-course and save files there using the .html or .htm extension.

macOS

  1. Open TextEdit.
  2. In Preferences > Format, choose Plain Text.
  3. Under Open and Save, enable Display HTML files as HTML code.
  4. Create a workspace folder and save with UTF-8 encoding.


Install a code editor (optional but recommended)

If you want syntax highlighting (colorful code), multi-file search, and source control integration (keeping track of changes), install an editor like VS Code:

  • Download from code.visualstudio.com.
  • Install the HTML CSS Support and Live Server extensions for an enhanced experience.
  • Open your course folder in the editor and create new files directly from there.

Other great choices include Atom, Sublime Text, and WebStorm.

Pick the editor that fits your workflow.


Know your browser developer tools

Developer tools (DevTools) are built into every browser.

They let you inspect elements, tweak CSS, and watch network requests.

Learn these shortcuts:

  • Open DevTools: Usually F12 (or Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) )
  • Inspect Element: Right-click any element and choose Inspect.
  • Responsive Design Mode: Toggle device simulation to test different screen sizes.

Tip: Keep DevTools open while you edit.

You can experiment with CSS live before committing changes to your files.


Create a project folder structure

Organize your files so they are easy to scale:

htmlcss-course/
  index.html
  css/
    styles.css
  images/

You can start with a single HTML file and one CSS file

Add more folders as your projects grow.


Setup check demo

This demo renders a minimal HTML page so you can confirm your editor and browser are working.

Syntax highlights: document structure (<!DOCTYPE html>, <head>, <body>) and a simple heading + paragraph.

Example

<!DOCTYPE html>
<html>
<head>
<title>Setup Check</title>
</head>
<body>
<h1>Ready to build!</h1>
<p>If you can see this in your browser, your environment works.</p>
</body>
</html>
Try it Yourself »

If you see the heading and paragraph in the output, your environment is set up correctly and you can continue with the course.


Checklist

  • You can create, save, and open .html files.
  • You can edit CSS in either inline styles or external .css files.
  • You can preview pages locally and in the Try it Yourself editor.
  • You know how to inspect HTML and CSS using DevTools.


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.