Membuat Halaman Profil Pribadi dengan HTML

Created at by Aris Munandar

Membuat halaman profil HTML adalah langkah awal yang sempurna untuk memulai perjalanan Anda dalam pengembangan web. Halaman profil pribadi tidak hanya membantu Anda memahami dasar-dasar HTML, tetapi juga memberikan kesempatan untuk menampilkan identitas digital Anda secara profesional.

Baca juga: Kesalahan Umum dalam HTML dan Cara Memperbaikinya

Mengapa Membuat Halaman Profil HTML?

Halaman profil pribadi dengan HTML memiliki banyak manfaat, terutama bagi pemula yang ingin belajar web development. Dengan membuat profil HTML pribadi, Anda dapat:

  • Memahami struktur dasar dokumen HTML
  • Belajar menggunakan berbagai elemen HTML semantik
  • Membangun portofolio online sederhana
  • Meningkatkan visibilitas profesional di internet
  • Mengasah keterampilan coding secara praktis

Struktur Dasar Halaman Profil HTML

Setiap halaman profil HTML dimulai dengan struktur dasar yang terdiri dari elemen-elemen penting. Berikut adalah kerangka dasar yang perlu Anda ketahui:

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Profil pribadi saya - Web Developer">
    <title>Profil Pribadi - Nama Anda</title>
</head>
<body>
    <!-- Konten profil akan diletakkan di sini -->
</body>
</html>Code language: HTML, XML (xml)

Penjelasan Struktur

  • DOCTYPE: Mendeklarasikan versi HTML yang digunakan (HTML5)
  • html lang=”id”: Menentukan bahasa konten (Indonesia)
  • head: Berisi metadata dan informasi dokumen
  • body: Berisi konten yang akan ditampilkan di browser

Membuat Bagian Header Profil

Bagian header adalah elemen pertama yang dilihat pengunjung pada halaman profil HTML Anda. Header biasanya berisi foto profil, nama, dan tagline profesional.

<header>
    <div class="profile-header">
        <img src="https://i.pravatar.cc/300" alt="Foto Profil Saya" width="200" height="200">
        <h1>Nama Lengkap Anda</h1>
        <p class="tagline">Web Developer | Designer | Content Creator</p>
    </div>
</header>Code language: HTML, XML (xml)

Untuk bagian foto profil, penulis menggunakan layanan pravatar.cc yang mana foto profil akan di muat secara acak, sehingga apabila halaman web di refresh atau dimuat ulang di browser, maka foto profil akan berubah.

Menambahkan Bagian Tentang Saya

Bagian “Tentang Saya” memberikan informasi lebih detail tentang latar belakang, keahlian, dan minat Anda. Ini adalah bagian penting dalam membuat halaman profil yang informatif.

<section id="tentang">
    <h2>Tentang Saya</h2>
    <p>
        Halo! Saya adalah seorang web developer yang passionate dalam menciptakan 
        pengalaman digital yang menarik dan fungsional. Dengan pengalaman lebih dari 
        3 tahun di bidang pengembangan web, saya fokus pada pembuatan website yang 
        responsif dan user-friendly.
    </p>
    <p>
        Saya memiliki keahlian dalam HTML, CSS, JavaScript, dan berbagai framework 
        modern. Saya selalu antusias untuk belajar teknologi baru dan menghadapi 
        tantangan dalam proyek-proyek yang kompleks.
    </p>
</section>Code language: HTML, XML (xml)

Menampilkan Keahlian dan Keterampilan

Menampilkan keahlian pada halaman profil HTML membantu pengunjung memahami kompetensi Anda dengan cepat. Gunakan daftar untuk menyajikan informasi secara terstruktur.

<section id="keahlian">
    <h2>Keahlian</h2>
    <ul>
        <li>HTML5 & CSS3</li>
        <li>JavaScript (ES6+)</li>
        <li>Responsive Web Design</li>
        <li>Git & Version Control</li>
        <li>UI/UX Design Basics</li>
    </ul>
</section>Code language: HTML, XML (xml)

Menambahkan Bagian Pendidikan

Informasi pendidikan memberikan kredibilitas pada profil Anda. Berikut cara menambahkan bagian pendidikan dalam cara membuat halaman profil:

<section id="pendidikan">
    <h2>Pendidikan</h2>
    <article>
        <h3>Sarjana Teknik Informatika</h3>
        <p><strong>Universitas Indonesia</strong></p>
        <p>2018 - 2022</p>
        <p>IPK: 3.75/4.00</p>
    </article>
</section>Code language: HTML, XML (xml)

Menampilkan Portofolio atau Proyek

Bagian portofolio menunjukkan hasil karya nyata Anda. Ini adalah elemen krusial dalam tutorial HTML profil yang profesional.

<section id="portofolio">
    <h2>Portofolio</h2>
    <div class="project">
        <h3>Website E-Commerce</h3>
        <p>Platform jual-beli online dengan fitur keranjang belanja dan payment gateway.</p>
        <p><strong>Teknologi:</strong> HTML, CSS, JavaScript, PHP</p>
        <a href="https://example.com/project1" target="_blank">Lihat Proyek</a>
    </div>
    <div class="project">
        <h3>Landing Page Perusahaan</h3>
        <p>Desain landing page modern dan responsif untuk perusahaan startup.</p>
        <p><strong>Teknologi:</strong> HTML5, CSS3, Bootstrap</p>
        <a href="https://example.com/project2" target="_blank">Lihat Proyek</a>
    </div>
</section>Code language: HTML, XML (xml)

Menambahkan Informasi Kontak

Bagian kontak memudahkan orang untuk menghubungi Anda. Pastikan informasi kontak mudah ditemukan pada halaman profil HTML Anda.

<section id="kontak">
    <h2>Hubungi Saya</h2>
    <ul>
        <li>Email: <a href="mailto:nama@email.com">nama@email.com</a></li>
        <li>LinkedIn: <a href="https://linkedin.com/in/username" target="_blank">linkedin.com/in/username</a></li>
        <li>GitHub: <a href="https://github.com/username" target="_blank">github.com/username</a></li>
        <li>Telepon: +62 812-3456-7890</li>
    </ul>
</section>Code language: HTML, XML (xml)

Footer melengkapi halaman profil HTML Anda dengan informasi tambahan seperti copyright dan link media sosial.

<footer>
    <p>&copy; 2025 Nama Anda. All rights reserved.</p>
    <div class="social-links">
        <a href="https://twitter.com/username" target="_blank">Twitter</a>
        <a href="https://instagram.com/username" target="_blank">Instagram</a>
        <a href="https://facebook.com/username" target="_blank">Facebook</a>
    </div>
</footer>Code language: HTML, XML (xml)

Kode Lengkap Halaman Profil HTML

Berikut adalah contoh lengkap membuat profil HTML yang menggabungkan semua elemen di atas:

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Profil pribadi saya sebagai Web Developer">
    <title>Profil Pribadi - Nama Anda</title>
</head>
<body>
    <header>
        <div class="profile-header">
            <img src="foto-profil.jpg" alt="Foto Profil" width="200" height="200">
            <h1>Nama Lengkap Anda</h1>
            <p class="tagline">Web Developer | Designer | Content Creator</p>
        </div>
    </header>

    <nav>
        <ul>
            <li><a href="#tentang">Tentang</a></li>
            <li><a href="#keahlian">Keahlian</a></li>
            <li><a href="#pendidikan">Pendidikan</a></li>
            <li><a href="#portofolio">Portofolio</a></li>
            <li><a href="#kontak">Kontak</a></li>
        </ul>
    </nav>

    <main>
        <section id="tentang">
            <h2>Tentang Saya</h2>
            <p>
                Halo! Saya adalah seorang web developer yang passionate dalam 
                menciptakan pengalaman digital yang menarik dan fungsional.
            </p>
        </section>

        <section id="keahlian">
            <h2>Keahlian</h2>
            <ul>
                <li>HTML5 & CSS3</li>
                <li>JavaScript (ES6+)</li>
                <li>Responsive Web Design</li>
                <li>Git & Version Control</li>
            </ul>
        </section>

        <section id="pendidikan">
            <h2>Pendidikan</h2>
            <article>
                <h3>Sarjana Teknik Informatika</h3>
                <p><strong>Universitas Indonesia</strong></p>
                <p>2018 - 2022</p>
            </article>
        </section>

        <section id="portofolio">
            <h2>Portofolio</h2>
            <div class="project">
                <h3>Website E-Commerce</h3>
                <p>Platform jual-beli online dengan fitur lengkap.</p>
            </div>
        </section>

        <section id="kontak">
            <h2>Hubungi Saya</h2>
            <ul>
                <li>Email: <a href="mailto:nama@email.com">nama@email.com</a></li>
                <li>LinkedIn: <a href="https://linkedin.com/in/username">LinkedIn</a></li>
                <li>GitHub: <a href="https://github.com/username">GitHub</a></li>
            </ul>
        </section>
    </main>

    <footer>
        <p>&copy; 2025 Nama Anda. All rights reserved.</p>
    </footer>
</body>
</html>Code language: HTML, XML (xml)

Menambahkan CSS untuk Desain yang Menarik

Setelah membuat struktur HTML, langkah selanjutnya adalah menambahkan CSS styling untuk membuat halaman profil HTML Anda lebih menarik dan profesional. CSS akan mengubah tampilan halaman dari sederhana menjadi modern dan eye-catching.

Mengapa CSS Penting untuk Halaman Profil?

CSS (Cascading Style Sheets) memberikan kontrol penuh atas tampilan visual halaman web Anda. Dengan CSS yang baik, halaman profil HTML Anda akan:

  • Terlihat lebih profesional dan menarik
  • Memberikan pengalaman pengguna yang lebih baik
  • Meningkatkan readability dan navigasi
  • Responsif di berbagai ukuran layar
  • Mencerminkan personal branding Anda

CSS Dasar untuk Halaman Profil

Berikut adalah kode CSS lengkap yang dapat Anda tambahkan ke dalam tag <style> di bagian <head> atau file eksternal style.css:

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container Utama */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Profil */
header {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.profile-header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.profile-header img:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-header h1 {
    font-size: 2.5rem;
    margin: 20px 0 10px;
    color: #2d3748;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
}

/* Navigation */
nav {
    background: white;
    border-radius: 50px;
    padding: 15px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #4a5568;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

nav ul li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Main Content */
main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

/* Sections */
section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

section p {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Keahlian List */
#keahlian ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#keahlian ul li {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

#keahlian ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Pendidikan */
#pendidikan article {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#pendidikan article:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#pendidikan h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Portofolio */
.project {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.project:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.project h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Kontak */
#kontak ul {
    list-style: none;
}

#kontak ul li {
    padding: 15px 0;
    font-size: 1.1rem;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

#kontak ul li:last-child {
    border-bottom: none;
}

#kontak a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#kontak a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
footer {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.2s ease;
}

footer p {
    color: #4a5568;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    main {
        padding: 25px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    #keahlian ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 20px;
    }
    
    .profile-header img {
        width: 150px;
        height: 150px;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}Code language: CSS (css)

Cara Menerapkan CSS ke Halaman Profil HTML

Ada dua cara untuk menambahkan CSS ke halaman profil HTML Anda:

1. Internal CSS (di dalam file HTML)

Tambahkan kode CSS di dalam tag <style> pada bagian <head>:

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profil Pribadi - Nama Anda</title>
    <style>
        /* Masukkan semua kode CSS di sini */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        /* ... CSS lainnya ... */
    </style>
</head>
<body>
    <!-- Konten HTML -->
</body>
</html>Code language: HTML, XML (xml)

2. External CSS (file terpisah)

Buat file baru bernama style.css dan hubungkan ke HTML:

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profil Pribadi - Nama Anda</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- Konten HTML -->
</body>
</html>
Code language: HTML, XML (xml)

Dari kedua cara diatas tinggal kamu pilih mana yang menurut kamu lebih efisien dan lebih maintainable dikemudian hari, keputusan seperti ini adalah keputusan yang akan selalu ada dalam dunia nyata para programmer, dihadapkan dengan pilihan mana yang lebih efisien dan maintainable untuk pengembangan dimasa depan.

Kode Lengkap HTML dengan CSS

Berikut adalah halaman profil HTML lengkap dengan CSS styling yang sudah terintegrasi:

<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Profil pribadi saya sebagai Web Developer">
    <title>Profil Pribadi - Nama Anda</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background: white;
            border-radius: 20px;
            padding: 60px 40px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .profile-header img {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            border: 6px solid #667eea;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            transition: transform 0.3s ease;
        }

        .profile-header img:hover {
            transform: scale(1.05) rotate(5deg);
        }

        .profile-header h1 {
            font-size: 2.5rem;
            margin: 20px 0 10px;
            color: #2d3748;
            font-weight: 700;
        }

        .tagline {
            font-size: 1.2rem;
            color: #667eea;
            font-weight: 500;
        }

        nav {
            background: white;
            border-radius: 50px;
            padding: 15px 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        nav ul li a {
            text-decoration: none;
            color: #4a5568;
            padding: 10px 25px;
            border-radius: 25px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        nav ul li a:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        main {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        section {
            margin-bottom: 50px;
            padding-bottom: 30px;
            border-bottom: 2px solid #e2e8f0;
        }

        section:last-child {
            border-bottom: none;
        }

        section h2 {
            font-size: 2rem;
            color: #2d3748;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }

        #keahlian ul {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }

        #keahlian ul li {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            font-weight: 500;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            text-align: center;
        }

        #keahlian ul li:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        }

        .project {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 20px;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .project:hover {
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
            transform: translateY(-5px);
        }

        .project a {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        #kontak ul {
            list-style: none;
        }

        #kontak ul li {
            padding: 15px 0;
            border-bottom: 1px solid #e2e8f0;
        }

        #kontak a {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
        }

        footer {
            background: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .social-links a {
            padding: 10px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
            .profile-header h1 {
                font-size: 2rem;
            }
            nav ul {
                flex-direction: column;
                align-items: center;
            }
            #keahlian ul {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="profile-header">
                <img src="https://i.pravatar.cc/300" alt="Foto Profil" width="200" height="200">
                <h1>Nama Lengkap Anda</h1>
                <p class="tagline">Web Developer | Designer | Content Creator</p>
            </div>
        </header>

        <nav>
            <ul>
                <li><a href="#tentang">Tentang</a></li>
                <li><a href="#keahlian">Keahlian</a></li>
                <li><a href="#pendidikan">Pendidikan</a></li>
                <li><a href="#portofolio">Portofolio</a></li>
                <li><a href="#kontak">Kontak</a></li>
            </ul>
        </nav>

        <main>
            <section id="tentang">
                <h2>Tentang Saya</h2>
                <p>
                    Halo! Saya adalah seorang web developer yang passionate dalam 
                    menciptakan pengalaman digital yang menarik dan fungsional.
                </p>
            </section>

            <section id="keahlian">
                <h2>Keahlian</h2>
                <ul>
                    <li>HTML5 & CSS3</li>
                    <li>JavaScript (ES6+)</li>
                    <li>Responsive Web Design</li>
                    <li>Git & Version Control</li>
                </ul>
            </section>

            <section id="pendidikan">
                <h2>Pendidikan</h2>
                <article>
                    <h3>Sarjana Teknik Informatika</h3>
                    <p><strong>Universitas Indonesia</strong></p>
                    <p>2018 - 2022</p>
                </article>
            </section>

            <section id="portofolio">
                <h2>Portofolio</h2>
                <div class="project">
                    <h3>Website E-Commerce</h3>
                    <p>Platform jual-beli online dengan fitur lengkap.</p>
                    <a href="#" target="_blank">Lihat Proyek</a>
                </div>
            </section>

            <section id="kontak">
                <h2>Hubungi Saya</h2>
                <ul>
                    <li>Email: <a href="mailto:nama@email.com">nama@email.com</a></li>
                    <li>LinkedIn: <a href="https://linkedin.com/in/username">LinkedIn</a></li>
                    <li>GitHub: <a href="https://github.com/username">GitHub</a></li>
                </ul>
            </section>
        </main>

        <footer>
            <p>&copy; 2025 Nama Anda. All rights reserved.</p>
            <div class="social-links">
                <a href="#">Twitter</a>
                <a href="#">Instagram</a>
                <a href="#">Facebook</a>
            </div>
        </footer>
    </div>
</body>
</html>Code language: HTML, XML (xml)

Dari kode diatas maka hasilnya seperti gambar di bawah ini.

Membuat Halaman Profil Pribadi dengan HTML

Penjelasan Fitur CSS yang Digunakan

1. Gradient Background

Background dengan gradient warna ungu memberikan tampilan modern dan menarik pada halaman profil HTML.

2. Border Radius & Box Shadow

Elemen dengan sudut melengkung dan bayangan memberikan kesan depth dan profesional.

3. Hover Effects

Animasi hover pada tombol dan card membuat interaksi lebih menarik dan responsif.

4. Responsive Design

Media queries memastikan halaman profil HTML terlihat bagus di semua ukuran layar.

5. CSS Grid & Flexbox

Layout modern menggunakan Grid dan Flexbox untuk tata letak yang fleksibel.

6. Smooth Transitions

Transisi halus pada semua elemen interaktif meningkatkan user experience.

Tips Membuat Halaman Profil HTML yang Efektif

Untuk membuat halaman profil HTML yang menarik dan profesional, perhatikan tips berikut:

  1. Gunakan Elemen Semantik: Manfaatkan tag seperti <header>, <nav>, <main>, <section>, dan <footer> untuk struktur yang jelas
  2. Optimasi SEO: Tambahkan meta description dan title yang relevan
  3. Responsif: Pastikan halaman dapat diakses dengan baik di berbagai perangkat
  4. Konten Berkualitas: Tulis deskripsi yang jelas, ringkas, dan informatif
  5. Validasi Kode: Gunakan W3C Validator untuk memastikan kode HTML valid
  6. Aksesibilitas: Tambahkan atribut alt pada gambar dan gunakan struktur heading yang benar

Kesimpulan

Membuat halaman profil HTML adalah keterampilan fundamental yang harus dikuasai setiap web developer pemula. Dengan mengikuti panduan ini, Anda dapat membuat profil pribadi yang profesional dan menarik. Mulailah dengan struktur dasar, tambahkan konten yang relevan, dan terus kembangkan halaman Anda seiring bertambahnya pengalaman dan keahlian.

Ingat, halaman profil HTML yang baik tidak hanya tentang kode yang benar, tetapi juga tentang bagaimana Anda menyajikan diri secara profesional di dunia digital. Selamat mencoba!

1 HTML Dasar (Pemula)

2 HTML Menengah

3 HTML Lanjutan

5 HTML Ahli (Bonus & Tips)

Comments

Congrats, you have the opportunity to be the first commenter on this article. Have questions or suggestions? Please leave a comment to start discussion.

Leave comment

Alamat email Anda tidak akan dipublikasikan. Required fields are marked *

news-1701

sabung ayam online

yakinjp

yakinjp

rtp yakinjp

slot thailand

yakinjp

yakinjp

yakin jp

yakinjp id

maujp

maujp

maujp

maujp

sabung ayam online

sabung ayam online

judi bola online

sabung ayam online

judi bola online

slot mahjong ways

slot mahjong

sabung ayam online

judi bola

live casino

sabung ayam online

judi bola

live casino

SGP Pools

slot mahjong

sabung ayam online

slot mahjong

SLOT THAILAND

138000491

138000492

138000493

138000494

138000495

138000496

138000497

138000498

138000499

138000500

138000501

138000502

138000503

138000504

138000505

138000506

138000507

138000508

138000509

138000510

138000511

138000512

138000513

138000514

138000515

138000516

138000517

138000518

138000519

138000520

138000521

138000522

138000523

138000524

138000525

article 138000526

article 138000527

article 138000528

article 138000529

article 138000530

article 138000531

article 138000532

article 138000533

article 138000534

article 138000535

article 138000536

article 138000537

article 138000538

article 138000539

article 138000540

article 138000541

article 138000542

article 138000543

article 138000544

article 138000545

article 138000546

article 138000547

article 138000548

article 138000549

article 138000550

article 138000551

article 138000552

article 138000553

article 138000554

article 138000555

158000396

158000397

158000398

158000399

158000400

158000401

158000402

158000403

158000404

158000405

158000406

158000407

158000408

158000409

158000410

158000411

158000412

158000413

158000414

158000415

article 158000416

article 158000417

article 158000418

article 158000419

article 158000420

article 158000421

article 158000422

article 158000423

article 158000424

article 158000425

article 158000426

article 158000427

article 158000428

article 158000429

article 158000430

article 158000431

article 158000432

article 158000433

article 158000434

article 158000435

208000411

208000412

208000413

208000414

208000415

208000416

208000417

208000418

208000419

208000420

208000421

208000422

208000423

208000424

208000425

208000426

208000427

208000428

208000429

208000430

208000431

208000432

208000433

208000434

208000435

article 208000436

article 208000437

article 208000438

article 208000439

article 208000440

article 208000441

article 208000442

article 208000443

article 208000444

article 208000445

article 208000446

article 208000447

article 208000448

article 208000449

article 208000450

article 208000451

article 208000452

article 208000453

article 208000454

article 208000455

article 208000456

article 208000457

article 208000458

article 208000459

article 208000460

article 208000461

article 208000462

article 208000463

article 208000464

article 208000465

208000436

208000437

208000438

208000439

208000440

208000441

208000442

208000443

208000444

208000445

208000446

208000447

208000448

208000449

208000450

208000451

208000452

208000453

208000454

208000455

228000271

228000272

228000273

228000274

228000275

228000276

228000277

228000278

228000279

228000280

228000281

228000282

228000283

228000284

228000285

article 228000286

article 228000287

article 228000288

article 228000289

article 228000290

article 228000291

article 228000292

article 228000293

article 228000294

article 228000295

article 228000296

article 228000297

article 228000298

article 228000299

article 228000300

article 228000301

article 228000302

article 228000303

article 228000304

article 228000305

article 228000306

article 228000307

article 228000308

article 228000309

article 228000310

article 228000311

article 228000312

article 228000313

article 228000314

article 228000315

238000241

238000242

238000243

238000244

238000245

238000246

238000247

238000248

238000249

238000250

238000251

238000252

238000254

238000255

238000256

238000257

238000258

238000259

238000260

article 238000261

article 238000262

article 238000263

article 238000264

article 238000265

article 238000266

article 238000267

article 238000268

article 238000269

article 238000270

article 238000271

article 238000272

article 238000273

article 238000274

article 238000275

article 238000276

article 238000277

article 238000278

article 238000279

article 238000280

news-1701