- 5 halaman: Beranda, Tentang, Hobi, Gallery, Kontak - Navigasi bersama tiap halaman - About: 4 metode CSS (internal, inline, eksternal, Tailwind) - Hobi: external CSS only, 3 foto pribadi - Gallery: Tailwind only via CDN, 3 foto pribadi - Kontak: tanpa form, link sosial media + email - Semua foto milik sendiri di /images - Tidak ada <form>, tidak ada script selain Tailwind CDN
99 lines
3.5 KiB
HTML
99 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>About | [Your Name]</title>
|
|
|
|
<!-- external CSS: linked file styles the header, nav, main wrapper (.layout-container), table and lists -->
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
<!-- Tailwind CSS: CDN script powers the utility classes on the badge below -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
<!-- internal CSS: this style block sets the page background and body font (class selector) and the heading colour (id selector) -->
|
|
<style>
|
|
.page-about {
|
|
background-color: #f4f1ea;
|
|
font-family: Georgia, "Times New Roman", serif;
|
|
}
|
|
|
|
#bio-title {
|
|
color: #1d4e89;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="page-about">
|
|
<header class="site-header">
|
|
<p class="brand">[Your Name]</p>
|
|
<nav>
|
|
<a class="nav-link" href="index.html">Home</a>
|
|
<a class="nav-link" href="about.html" aria-current="page">About</a>
|
|
<a class="nav-link" href="hobbies.html">Hobbies</a>
|
|
<a class="nav-link" href="gallery.html">Gallery</a>
|
|
<a class="nav-link" href="contact.html">Contact</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<!-- external CSS: .layout-container from styles.css controls the width and padding of this wrapper -->
|
|
<main class="layout-container">
|
|
<h1 id="bio-title" class="page-title">About Me</h1>
|
|
|
|
<!-- Tailwind CSS: utility classes style this badge (shape, colour, spacing, font) -->
|
|
<span class="inline-block rounded-full bg-blue-700 px-3 py-1 text-sm font-semibold text-white">Informatics, Semester 1</span>
|
|
|
|
<section>
|
|
<h2 class="section-title">Bio</h2>
|
|
<p>I am [Your Name], a first-semester student in the Informatics program. This semester I take Web Programming, where I write pages by hand and learn why each CSS method exists. Outside class I [describe your interests here].</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="section-title">Education</h2>
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Level</th>
|
|
<th>School</th>
|
|
<th>Years</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Bachelor, Informatics</td>
|
|
<td>[Your University]</td>
|
|
<td>2026 to present</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Senior high school</td>
|
|
<td>[Your High School]</td>
|
|
<td>[Years]</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="section-title">Milestones</h2>
|
|
<ol class="steps">
|
|
<li>Started the Informatics program in 2026.</li>
|
|
<li>Wrote my first HTML page in Web Programming.</li>
|
|
<li>Built this site with four CSS methods.</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="section-title">Favorite quote</h2>
|
|
<!-- inline CSS: style="" on this one element only; it takes priority over the internal and external rules -->
|
|
<blockquote style="margin: 0; padding: 12px 16px; border-left: 4px solid #1d4e89; background-color: #ffffff; font-style: italic; color: #333333;">
|
|
Talk is cheap. Show me the code.
|
|
<footer>Linus Torvalds</footer>
|
|
</blockquote>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<p>© 2026 [Your Name]. Web Programming, Assignment 1.</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|