Step 2 of 10

My First HTML Page

📖 Lesson

What is HTML?

HTML (HyperText Markup Language) is the foundation of every web page. It's the language that tells the browser what's on the page.

HTML uses tags - markers in angle brackets:

<h1>This is a heading</h1>
<p>This is a paragraph</p>

Basic HTML tags

  • <h1> to <h6> - Headings (h1 is largest)
  • <p> - Paragraph of text
  • <a href="..."> - Link
  • <img src="..."> - Image
  • <div> - Container/block
  • <ul> and <li> - Bullet list
Every tag opens and closes: <p>text</p>. The image tag <img> is an exception - it has no closing tag.

Structure of an HTML page

Every HTML page has this basic skeleton:

<!DOCTYPE html>
<html>
  <head>
    <title>Page title</title>
  </head>
  <body>
    Page content...
  </body>
</html>

<head> = metadata (title, styles) | <body> = what people see

💻 Example to try
index.php
🚀 Try on Vibmy
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Portfolio</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "Segoe UI", system-ui, sans-serif;
            background: #0a0a1a;
            color: #e0e0e0;
            line-height: 1.7;
        }

        header {
            background: linear-gradient(135deg, #1a1a3e 0%, #0f2027 100%);
            padding: 4rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0,212,170,0.05) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            to { transform: rotate(360deg); }
        }

        .avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4aa, #7b68ee);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin: 0 auto 1.5rem;
            position: relative;
            z-index: 1;
            box-shadow: 0 0 30px rgba(0,212,170,0.3);
        }

        header h1 {
            font-size: 2.5rem;
            background: linear-gradient(to right, #00d4aa, #7b68ee);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            z-index: 1;
        }

        header p {
            color: #8892a4;
            font-size: 1.1rem;
            margin-top: 0.5rem;
            position: relative;
            z-index: 1;
        }

        nav {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
            position: relative;
            z-index: 1;
            flex-wrap: wrap;
        }

        nav a {
            color: #00d4aa;
            text-decoration: none;
            padding: 0.4rem 1rem;
            border: 1px solid rgba(0,212,170,0.3);
            border-radius: 20px;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        nav a:hover {
            background: rgba(0,212,170,0.15);
            transform: translateY(-2px);
        }

        main { max-width: 800px; margin: 0 auto; padding: 2rem; }

        section {
            margin-bottom: 3rem;
            padding: 2rem;
            background: rgba(255,255,255,0.03);
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.06);
        }

        section h2 {
            color: #00d4aa;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .skill {
            padding: 0.4rem 1rem;
            background: rgba(123,104,238,0.15);
            border: 1px solid rgba(123,104,238,0.3);
            border-radius: 20px;
            font-size: 0.85rem;
            color: #a78bfa;
        }

        .projects { display: grid; gap: 1rem; margin-top: 1rem; }

        .project {
            padding: 1.5rem;
            background: rgba(0,212,170,0.05);
            border: 1px solid rgba(0,212,170,0.15);
            border-radius: 12px;
            transition: all 0.3s;
        }

        .project:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .project h3 { color: #00d4aa; margin-bottom: 0.5rem; }
        .project p { color: #8892a4; font-size: 0.95rem; }

        footer {
            text-align: center;
            padding: 2rem;
            color: #555;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        footer a { color: #00d4aa; text-decoration: none; }

        @media (max-width: 600px) {
            header h1 { font-size: 1.8rem; }
            section { padding: 1.5rem; }
        }
    </style>
</head>
<body>
    <header>
        <div class="avatar">&#x1F468;&#x200D;&#x1F4BB;</div>
        <h1>John Smith</h1>
        <p>Web Developer & Vibe Coder</p>
        <nav>
            <a href="#about">About</a>
            <a href="#skills">Skills</a>
            <a href="#projects">Projects</a>
            <a href="#contact">Contact</a>
        </nav>
    </header>

    <main>
        <section id="about">
            <h2>About Me</h2>
            <p>Hi! I'm a beginner in vibe coding, learning to create websites with AI. Every day I discover something new and enjoy the creative process. My goal is to build amazing web projects that help people.</p>
        </section>

        <section id="skills">
            <h2>Skills</h2>
            <p>Technologies I work with:</p>
            <div class="skills">
                <span class="skill">HTML</span>
                <span class="skill">CSS</span>
                <span class="skill">JavaScript</span>
                <span class="skill">PHP</span>
                <span class="skill">AI Prompting</span>
                <span class="skill">Vibmy</span>
                <span class="skill">Vibe Coding</span>
            </div>
        </section>

        <section id="projects">
            <h2>Projects</h2>
            <div class="projects">
                <div class="project">
                    <h3>&#x1F3A8; Personal Portfolio</h3>
                    <p>This page! My first web portfolio created with vibe coding.</p>
                </div>
                <div class="project">
                    <h3>&#x1F3AE; Browser Game</h3>
                    <p>Simple click game with scoring and difficulty levels.</p>
                </div>
                <div class="project">
                    <h3>&#x1F4DD; Todo App</h3>
                    <p>Task management app with PHP backend.</p>
                </div>
            </div>
        </section>

        <section id="contact">
            <h2>Contact</h2>
            <p>Want to connect? Email me at email@example.com or find me on social media.</p>
        </section>
    </main>

    <footer>
        <p>Built with <a href="https://vibehost.cz/dashboard/">Vibmy</a> &#x2764;&#xFE0F; 2026</p>
    </footer>
</body>
</html>
← Back 2 / 10 Next step →