Vibe Coding

An interactive, beginner-friendly guide to the magic of web development. Learn the basics of HTML, CSS, and JavaScript by focusing on creativity and fun. Perfect for kids and curious adults!

๐ŸŒŸ 0. What is "Vibe Coding"?

Vibe Coding Cover Image

Welcome! "Vibe Coding" is all about creating cool things for the web by focusing on a feeling, a "vibe," instead of getting stuck on complicated rules. It's like painting with code!

Think of a vibe you love: a cozy rainy day ๐ŸŒง๏ธ, a futuristic neon city ๐ŸŒƒ, or a magical fairy garden ๐Ÿ„. We'll learn how to use code to bring that feeling to life on a webpage.

This is for everyone โ€” kids, parents, and any grownup who's curious about how websites work. Let's start the adventure!

Let's Go! →

๐Ÿ’ป 1. HTML: The Page Skeleton

Every webpage needs a skeleton to give it structure. That's HTML (HyperText Markup Language). It uses "tags" to tell the browser what each part is.

  • <h1>A Big Title</h1> - The main headline.
  • <p>A paragraph of text.</p> - A paragraph for your thoughts.
  • <img src="..."> - A place for an image.
  • <button>Click Me!</button> - A button to press.

โœ๏ธ Try it! Edit the HTML in the box below and see it change the output in real-time.

Output:

Next Chapter →

๐ŸŽจ 2. CSS: The Style & Vibe

A skeleton is great, but we need to give it a vibe! That's what CSS (Cascading Style Sheets) does. It's the "makeup," "clothes," and "paint" for your HTML.

With CSS, you can change colors, fonts, sizes, spacing, and even add animations.

โœ๏ธ Try it! Change the CSS rules below. Try changing `color` to `deeppink`, `border-radius` to `50px`, or `font-size` to `30px`.

Output:

I've got style! โœจ
Next Chapter →

๐ŸŒ€ 3. JS: The Magic & Motion

Now for the real magic! JavaScript (JS) is what makes your page interactive. It's the code that makes things happen when you click a button, move your mouse, or play a game.

JS listens for "events" (like a click) and then runs your instructions.

โœ๏ธ Try it! Click the button below to make a random emoji appear. The JavaScript code is making this happen!

Output:

Next Chapter →

โœ๏ธ 4. Your Creative Spark

The best way to start a project is with an idea or a "prompt." A prompt is just a simple sentence that describes the vibe you want to create.

Example Prompt: Design a welcome page for a secret treehouse club.

How to Prompt an AI for Better Results

When you ask me (or any AI) for help, the secret is to be descriptive. Think of it like giving directions. "Go to the store" isn't very helpful, but "Go to the corner store with the green roof, next to the park" is much better!

  • Instead of: "Make a button."
  • Try this: "Make a friendly, pink button with rounded corners that says 'Click Me! โœจ'. When you hover over it, it should get slightly bigger."

How to Ask for Help When You're Stuck

All coders get stuck sometimesโ€”even the experts! It's a normal part of learning. Here is the best way to ask for help:

  1. Tell me what you WANT to happen. (e.g., "I want the star to spin when I click the button.")
  2. Tell me what IS ACTUALLY happening. (e.g., "But when I click it, nothing happens.")
  3. Share your code! Just copy and paste the part that's not working.

Now, write your own creative prompt in the box below!

Next Chapter →

๐Ÿš€ 5. Share Your Vibe

You've learned the basics and you're ready to share your creation. Here are two amazing and fun places to publish your work, each with its own special vibe.


Option 1: Build a Home on Neocities

Neocities.org is a wonderful community that's all about creative freedom and bringing back the fun of hand-coded websites. It's perfect for building your very own website, blog, or portfolio from scratch.

  1. Go to Neocities.org and sign up.
  2. You'll get a space to upload your files.
  3. Simply upload the `.html` file you create (along with any CSS or JS files) to publish it for the world to see!

Option 2: Try the CHONKLY Studio Playground or Mint a Creation on Chonkly

Chonkly.com is a place to "mint" single, interactive creations. It's great for sharing a specific piece of code art or a fun little web toy you've made.

  1. Go to Chonkly.com/playground.
  2. Then click theLaunch CHONK Studio button, then EDIT the index.html.
  3. Get the preview in Real-time in the Live Preview on the right.
  4. Paste your HTML code inside and play with it right in their editor!

The most important thing is to have fun and keep creating. The web is your canvas!