Membuat Website Undangan Ulang Tahun Sederhana dengan HTML

Website Undangan Ulang Tahun dengan HTML Sederhana

Halo teman-teman!

Kali ini, kita akan mempraktekkan semua yang sudah dipelajari untuk membuat proyek kecil: Website Undangan Ulang Tahun. Kita akan menggabungkan elemen-elemen seperti heading, gambar, list, dan link untuk menciptakan undangan digital bergaya retro. Yuk, kita mulai!


Apa yang Akan Kita Buat?

Website ini akan berisi:

  1. Judul untuk memberitahukan bahwa ini adalah ulang tahun kalian.
  2. Gambar bertema ulang tahun.
  3. Daftar barang yang tamu perlu bawa.
  4. Link ke lokasi acara menggunakan Google Maps.

Contohnya nanti akan terlihat seperti ini:

  • Judul: "Ayo Rayakan Ulang Tahunku!"
  • Gambar: Balon warna-warni.
  • Daftar: Kado, makanan, dan minuman.
  • Link: Lokasi acara di Google Maps.

Langkah Membuat Website Undangan

1. Buat File HTML Baru

Buka teks editor seperti VS Code, buat file baru, dan simpan dengan nama index.html. Tambahkan struktur dasar HTML:

<!DOCTYPE html>
<html>
<head>
    <title>Undangan Ulang Tahun</title>
</head>
<body>
</body>
</html>

2. Tambahkan Judul

Gunakan heading <h1> untuk judul utama:

<h1>Ayo Rayakan Ulang Tahunku!</h1>

3. Tambahkan Gambar

Gunakan elemen <img> untuk menambahkan gambar bertema ulang tahun. Jangan lupa tambahkan alt text untuk deskripsi gambar:

<img src="https://via.placeholder.com/300x200" alt="Balon warna-warni untuk pesta ulang tahun" />

4. Buat Daftar Barang yang Perlu Dibawa

Gunakan elemen <ul> untuk membuat daftar barang:

<h2>Apa yang Harus Dibawa:</h2>
<ul>
    <li>Kado</li>
    <li>Makanan ringan</li>
    <li>Minuman</li>
</ul>

5. Tambahkan Link ke Lokasi

Gunakan elemen <a> untuk membuat link ke lokasi acara:

<h2>Lokasi Acara:</h2>
<a href="https://goo.gl/maps/example" target="_blank">Klik di sini untuk melihat lokasi di Google Maps</a>

6. Hasil Akhir

Gabungkan semua bagian, dan kode lengkapnya akan terlihat seperti ini:

<!DOCTYPE html>
<html>
<head>
    <title>Undangan Ulang Tahun</title>
</head>
<body>
    <h1>Ayo Rayakan Ulang Tahunku!</h1>
    <img src="https://via.placeholder.com/300x200" alt="Balon warna-warni untuk pesta ulang tahun" />
    <h2>Apa yang Harus Dibawa:</h2>
    <ul>
        <li>Kado</li>
        <li>Makanan ringan</li>
        <li>Minuman</li>
    </ul>
    <h2>Lokasi Acara:</h2>
    <a href="https://goo.gl/maps/example" target="_blank">Klik di sini untuk melihat lokasi di Google Maps</a>
</body>
</html>

Cara Menjalankan Kode

  1. Simpan file index.html.
  2. Klik kanan file, pilih Open With, lalu buka dengan browser seperti Google Chrome.
  3. Kalian akan melihat website undangan ulang tahun sederhana kalian! 🎉

Kustomisasi Tambahan

  1. Ubah Gambar: Ganti URL di src dengan gambar yang lebih personal.
  2. Daftar Tambahan: Tambahkan item lain di daftar, misalnya "topi pesta" atau "kamera."
  3. Link Unik: Ganti URL Google Maps dengan lokasi acara kalian.

Kesimpulan
Keren kan? Dengan hanya menggunakan HTML sederhana, kalian bisa membuat undangan ulang tahun digital yang personal dan interaktif. Jangan lupa share hasil kalian dan beri tahu kami apa yang kalian buat. Sampai jumpa di pelajaran berikutnya! 😊

Comments

Postingan Populer

Image

Superingan is a Blogger template designed with simplicity and functionality in mind, offering a clean and user-friendly platform for professional websites. This theme is perfect for various website types, including personal blogs, online magazines, news websites, and portfolios. Features: Responsive Design: Your website will look its best across all devices, from desktops and laptops to tablets and smartphones. Customizable Colors: Easily change the template's colors to match your branding or preferences. Custom Headers: Upload your own header image to add a personal touch to your website. Custom Menus: Create and manage your website's navigation menus with ease. Widget Areas: Add widgets to display additional content and features on your website's sidebar. Clean HTML & CSS Code: The template is built with clean and well-structured code, making it easy to learn and customize further. Superingan is an ideal choice for those seeking a professional website with a sim...

Image

If you’ve ever struggled to align elements neatly in CSS—or tried to make a layout look good on both desktop and mobile— Flexbox CSS is your new best friend. Short for "Flexible Box Layout," Flexbox is a layout module in CSS3 that provides an efficient way to distribute space and align items in a container, even when their sizes are dynamic. In this flexbox tutorial for beginners , we’ll guide you step-by-step through what Flexbox is, why it’s essential for responsive design, and how to use it to build clean, adaptable layouts. By the end of this guide, you’ll be able to use Flexbox confidently to build elements like navigation bars, feature sections, and even a CSS flexbox pricing table example . Whether you're a self-taught developer, a student, or someone shifting into a front-end career, Flexbox will become one of your most powerful tools in building responsive, user-friendly websites. Before diving into the code, if you're not yet familiar with CSS fundamenta...

Image

Hello everyone! In our last post about Grid Layouts , we explored how to create a basic grid structure in CSS. Now, let’s take that one step further. Today, we're diving into Grid Sizing — how to size columns and rows inside your grid layout. By the end of this post, you’ll know exactly when to use fixed units like px , flexible units like fr , and responsive functions like minmax() . We’ll even explore some cool developer tools and an interactive test. Ready? Let’s go! What is Grid Sizing? Grid Sizing refers to how we control the size of the rows and columns inside our CSS Grid layout. Depending on what kind of content you're building (e.g., dashboards, cards, galleries), you'll want your grid to behave differently. In CSS Grid, we use properties like: grid-template-rows grid-template-columns grid-auto-rows grid-auto-columns Let’s break these down together. 1. Fixed Sizes with px and rem You can define static sizes for rows and columns using pixels ...