Part 2: Editing Your Website

Making the Template Your Own

Now that your website is live, it's time to make it yours! In this section, you'll learn to understand the files in your repository, edit your website's content, and customize it with your own text, images, and documents.

Understanding Your Website Files

Before we start editing, let's understand what each type of file does. This will make editing much easier and less intimidating!

1. HTML Files (.html)

What they do: HTML files contain the content and structure of your web pages—all the text, headings, paragraphs, links, buttons, and sections you see on the website.

Think of HTML as: The skeleton and organs of your website. It determines what appears on the page and how it's organized.

Key HTML file:

Additional HTML files (if you have a multi-page site):

💡 One-Page vs Multi-Page Websites:

2. CSS Files (.css)

What they do: CSS files control the visual design and styling of your website—colors, fonts, sizes, spacing, layouts, and all the visual appearance.

Think of CSS as: The clothing, makeup, and decoration of your website. It makes everything look beautiful and professional.

Common CSS files:

✨ Important: Without CSS, your website would just be plain black text on a white background with no colors, spacing, or design. CSS is what makes it look professional!

3. JavaScript Files (.js) [Optional]

What they do: JavaScript adds interactive features and functionality—animations, form validation, interactive menus, and dynamic content.

Think of JavaScript as: The appliances and smart features in your house. Not essential for basic functionality, but adds convenience and interactivity.

Do you need to edit JavaScript? Usually not! Most templates work fine without touching JavaScript files. We'll only mention if you need to edit them.

4. Image Folder (/images or /img)

What it contains: All the photos, graphics, icons, and visual assets used on your website.

Common image files:

5. Files/Documents Folder (/files or /documents)

What it contains: Downloadable documents like your resume, CV, project reports, or other PDFs you want to share.

Common files:

6. README.md File

What it is: A markdown text file that provides information about the template—instructions, features, credits.

Should you edit it? No, this file is just for your reference. Read it to understand the template better, but you don't need to change it.

✨ Pro Tip: Before making any changes, spend 5-10 minutes reading through your template's README.md file. It often contains helpful tips, special features, and customization instructions specific to your template!

Step 8: Open Your index.html File

Now let's start editing! We'll begin with your homepage.

What to do:

  1. Go to your repository homepage (click the <> Code tab if you're not already there)
  2. In the file list, find and click on index.html
  3. The file will open in "view mode" where you can see the code but not edit it yet
Screenshot showing the github repo < > Code tabe
💡 What you're seeing: You're now looking at the HTML code that creates your homepage. Don't panic if it looks complicated! We'll guide you through exactly what to focus on.

Step 9: Enter Edit Mode

To make changes, you need to switch from "viewing" the file to "editing" it.

What to do:

  1. Look for a pencil icon (✏️) in the top right area of the file viewer
  2. The pencil might be next to text that says "Edit" or "Edit this file"
  3. Click the pencil icon
  4. The file will now switch to edit mode—you can type and make changes!
Screenshot showing the index.html file in github repo indicating the pencil button to start editing
🎉 You're now in edit mode! You can type, delete, and change the code. Don't worry about breaking anything—GitHub saves version history, so you can always undo changes if needed.

Step 10: Reading and Understanding the HTML File

Before you start editing, take a few minutes to read through the file. Don't try to understand every single line—we'll focus on what matters.

What to Look For (and What to Ignore):

🚫 IGNORE these technical codes:

These are the "behind-the-scenes" structural codes. You don't need to understand them to edit your content!

✅ FOCUS ON these readable texts:

This is the content that actually appears on your website—this is what you'll change!

Understanding Comments:

You'll see text wrapped in special symbols:

<!-- This is a comment explaining what the next section does -->

Comments are notes left by the template creator to help you understand the code. They:

✨ Pro Tip: Comments are your friends! Read them carefully. They often say things like "Edit your name here" or "This is the About section."

Understanding Color Coding:

GitHub's code editor uses colors to help you read the code:

💡 Focus Strategy: When reading through your HTML file, focus on the black text between the blue tags. That's usually the content you'll want to change!

Example of What You'll See:

Sample HTML Code
<!-- Hero Section: This is the main banner at the top -->
<section class="hero">
    <h1>Welcome to My Website</h1>
    <p>Hi! I'm [Your Name], and this is my personal space on the web.</p>
    <a href="about.html" class="btn">Learn More About Me</a>
</section>

What to edit in this example:

What NOT to change:

⚠️ Golden Rule: Always edit text BETWEEN tags (between > and <), never delete the tags themselves unless you want to remove an entire section!

Step 11: Editing Your Website Text

Now for the fun part—making the website about YOU!

What to do:

  1. Start from the top of the index.html file
  2. Read through slowly, looking for text that should be personalized
  3. Replace placeholder text with your own information
  4. Go section by section through the entire file

Common Sections to Edit:

1. Page Title (in the <head> section):

Original Template Code
<title>John Doe - Web Developer</title>
Your Edited Code
<title>Jane Smith - UX Designer</title>

This is what shows in the browser tab when someone visits your site.

2. Main Heading/Hero Section:

Original Template Code
<h1>Hi, I'm [Your Name]</h1>
<p>I'm a passionate web developer creating amazing experiences.</p>
Your Edited Code
<h1>Hi, I'm Sarah Johnson</h1>
<p>I'm a graphic designer who loves creating visual stories that inspire.</p>

3. About Section:

Original Template Code
<h2>About Me</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. I have 5 years of experience in web development...</p>
Your Edited Code
<h2>About Me</h2>
<p>I'm a recent graduate from UCLA with a degree in Computer Science. I specialize in front-end development and love building user-friendly websites. When I'm not coding, you'll find me hiking in the mountains or trying new coffee shops.</p>

4. Navigation Menu:

Navigation Example
<nav>
    <a href="#home">Home</a>
    <a href="#about">About</a>
    <a href="#projects">Projects</a>
    <a href="#contact">Contact</a>
</nav>

You can usually keep these as-is, or customize the text slightly (e.g., "Projects" → "My Work").

Tips for Editing Text:

✨ Length Flexibility: You don't have to match the template's text length!
💡 Writing Your Content: Before editing, write your content in a separate document (Google Docs, Notes app, etc.). This way you can:

Safe Deletion Guidelines:

Want to remove a section entirely? Here's how:

  1. Find the opening tag (e.g., <section class="projects">)
  2. Find the matching closing tag (e.g., </section>)
  3. Delete everything from the opening tag to the closing tag
  4. Make sure you delete both tags!
⚠️ Warning: Be careful when deleting code! If you accidentally delete only an opening tag but not its closing tag (or vice versa), your website layout might break. When in doubt, leave it or ask for help!

Step 12: Saving Your Changes (Commit)

This is THE MOST IMPORTANT step! In GitHub, you don't just click "Save." You have to "commit" your changes.

What is a "Commit"?

A commit is GitHub's way of saving changes. It creates a snapshot of your files at this moment in time. Think of it like clicking "Save Version" in a document—GitHub keeps track of every version you save.

How to Commit Your Changes:

  1. After editing your text, scroll down to the bottom of the page
  2. You'll see a section called "Commit changes"
  3. There are two text fields:
    • First field (required): A short description of what you changed
      • Example: "Updated homepage with my name and bio"
      • Example: "Changed About section text"
    • Second field (optional): A longer detailed description (you can leave this blank)
  4. Make sure "Commit directly to the main branch" is selected
  5. Click the green "Commit changes" button
Screenshot showing the green 'commit changes' button on the top right  index.html file that you can click to save any changes you made
⚠️ CRITICAL: If you don't commit your changes, they will be LOST! Always click "Commit changes" after editing. There's no auto-save in GitHub!
✨ Pro Tip: Commit frequently! Instead of making 20 changes and committing once, make a few changes and commit. If something breaks, you'll know exactly which change caused the problem.
🎉 Changes Saved! After committing, you'll be returned to the file view. Your changes are now saved in GitHub's history forever. You can always go back to previous versions if needed!

Step 13: Viewing Your Changes on the Live Site

After committing changes, you'll want to see them on your actual website!

Important timing information:

Changes don't appear instantly. GitHub Pages needs time to rebuild your website.

How to view your changes:

  1. Wait 2-3 minutes after committing
  2. Go to your repository homepage (click <> Code tab)
  3. Click your website link in the "About" section (remember Step 7?)
  4. Hard refresh your browser:
    • Windows/Linux: Press Ctrl + Shift + R
    • Mac: Press Cmd + Shift + R
    • Or clear your browser cache
💡 Why hard refresh? Browsers cache (save) websites to load them faster. A hard refresh tells your browser: "Ignore the saved version, download the website fresh from the server." This ensures you see the latest changes.

Still not seeing changes?

✨ Troubleshooting Tips:

🎊 Excellent Progress!

You've learned the fundamentals of editing your website:

📝 Coming Up Next: In the next sections, you'll learn how to:

Continue to the next parts to complete your website customization!

This tutorial was created for students in the Master of Arts in Educational Innovation, Technology, and Entrepreneurship (MEITE) program at UNC Chapel Hill School of Education.