Edit an HTML Template with No Coding Experience
A beginner's guide to editing an HTML template: set up VS Code, preview live, change text, images, links, and colors, and avoid breaking the layout.
By UndieGravity, , 2 min read
You do not need to be a developer to turn an HTML template into your own website. HTML is mostly your text wrapped in tags. If you can find and replace words in a document, you can edit a template. Here is a safe way to do it.
Set up a simple editor
- Install Visual Studio Code, a free code editor.
- Open the template folder with File, Open Folder.
- Install the Live Server extension, then right-click
index.htmland choose Open with Live Server. The page reloads each time you save.
Read the structure before editing
HTML elements have an opening and a closing tag. You change what is between them, not the tags themselves.
<h1>Fresh pasta, made every morning</h1>
<p>Handmade pasta and wood fired pizza.</p>
<a href="#book" class="button">Book a table</a>To change the headline, edit only the words between <h1> and </h1>. Leave class names alone: they connect the element to its styles.
Change images
- Put your photo in the template's
imagesfolder. - Find the
<img>tag and change the file name insrc. - Update the
alttext to describe your photo. - Keep a similar shape (for example landscape for landscape) so the layout does not change.
Change links
- Email:
href="mailto:you@example.com". - Phone:
href="tel:+923001234567"so phones can call with one tap. - WhatsApp:
href="https://wa.me/923001234567". - Maps: paste your Google Maps share link.
Change colors
Open style.css and look at the top for lines starting with --, such as --primary: #3f3cf2;. Change the color code there and every button and heading using it updates. Use any color picker to get a hex code.
Do not break the page
- Change one thing at a time and save. If something breaks, undo with Ctrl+Z.
- Keep a copy of the original folder before you start.
- Do not delete a closing tag like
</div>. VS Code highlights matching pairs to help you. - To remove a whole section, delete from its opening
<section>to the matching</section>.
When it looks right, put it online for free on GitHub Pages or Netlify. Both accept a plain folder of HTML files.