Skip to content

Instantly share code, notes, and snippets.

.biodata {
margin-top: 20px;
text-align: left;
}
h2 {
color: #555;
font-size: 2em;
}
id_siswa INT Primary Key, Auto Increment
nama VARCHAR(100) Nama lengkap siswa
tanggal_lahir DATE Tanggal lahir siswa
alamat TEXT Alamat siswa
email VARCHAR(100) Email siswa
telepon VARCHAR(15) Nomor telepon siswa
id_kelas INT Foreign Key, referensi ke tabel Kelas
id_guru INT Primary Key, Auto Increment
nama VARCHAR(100) Nama lengkap guru
email VARCHAR(100) Email guru
telepon VARCHAR(15) Nomor telepon guru
alamat TEXT Alamat guru
spesialisasi VARCHAR(100) Mata pelajaran yang diajarkan
@sulemani39
sulemani39 / kelas
Last active October 25, 2024 17:22
id_kelas INT Primary Key, Auto Increment
nama_kelas VARCHAR(50) Nama kelas
tingkat VARCHAR(10) Tingkat (mis. 1, 2, 3, dst.)
id_guru INT Foreign Key, referensi ke tabel Guru
id_mapel INT Primary Key, Auto Increment
nama_mapel VARCHAR(100) Nama mata pelajaran
id_guru INT Foreign Key, referensi ke tabel Guru
id_nilai INT Primary Key, Auto Increment
id_siswa INT Foreign Key, referensi ke tabel Siswa
id_mapel INT Foreign Key, referensi ke tabel Mata_Pelajaran
nilai FLOAT Nilai yang diperoleh siswa
semester INT Semester (mis. 1, 2, dst.)
id_absen INT Primary Key, Auto Increment
id_siswa INT Foreign Key, referensi ke tabel Siswa
tanggal DATE Tanggal absensi
status ENUM('Hadir', 'Sakit', 'Izin') Status kehadiran
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulir Pendaftaran</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="form-container">
/* file: style.css */
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f7f7f7;
}
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulir Kontak</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="contact-form">