Pemrograman
HTML Lanjut
Harminto Mulyo
minto@unisnu.ac.id
+6289 534 062 0398
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Pokok Bahasan
Tabel HTML
Form HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Video & Audio
HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Audio Video HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
audio.html
<!DOCTYPE html>
<html>
<head>
<title>Menampilkan Fasilitas Audio di HTML</title>
</head>
<body>
</body>
</html>
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Atribut pada tag Audio
Attribute Value Description
autoplay autoplay Specifies that the audio will start playing as soon as
it is ready
controls controls Specifies that audio controls should be displayed
(such as a play/pause button etc)
Specifies that the audio will start over again, every
loop loop time it is finished
muted muted Specifies that the audio output should be muted
auto Specifies if and how the author thinks the audio
preload metadata should be loaded when the page loads
none
src URL Specifies the URL of the audio file
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
video.html
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Atribut pada tag Video
Attribute Value Description
autoplay autoplay Specifies that the video will start playing as soon as it is ready
controls controls Specifies that video controls should be displayed (such as a play/pause button etc).
loop loop Specifies that the video will start over again, every time it is finished
muted muted Specifies that the audio output of the video should be muted
Specifies an image to be shown while the video is downloading, or until the user hits
poster URL the play button
auto
preload metadata Specifies if and how the author thinks the video should be loaded when the page loads
none
src URL Specifies the URL of the video file
width pixels Sets the width of the video player
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tabel HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Konsep Tabel di HTML
td
tr
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Konsep Tabel di HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Konsep Tabel di HTML
RUMUS UMUM
<table>
<tr>
<td>…</td>
</tr>
</table>
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tabel Padding dan Spacing
• Tabel Padding adalah ruang antara tepi sel dan isi sel.
• Tabel Spacing atau Jarak sel adalah ruang antara setiap sel
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tabel Padding dan Spacing
• Tabel Padding adalah ruang antara tepi sel dan isi sel.
• Tabel Spacing atau Jarak sel adalah ruang antara setiap sel
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tabel Komplek
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Table Colspan dan Rowspan
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tabel Colspan dan Rowspan
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Kerjakan!!
Halaman2.4.html
Halaman2.5.html
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Formulir HTML
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
HTML Form
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
HTML Form [Atribut]
Atribut pada HTML form adalah sebagai berikut :
Action : Menetapkan URL tujuan tempat dimana data akan diproses setelah tombol submit ditekan.
Nilai = URL
Target : Menentukan konteks pada browser, bagaimana respon browser saat data dikirimkan ke server
Nilai : _blank | _self | _parent | _top
Method : menentukan metode HTTP (GET atau POST) yang akan digunakan saat mengirimkan data dari
form
Enctype : Menentukan jenis MIME type yang digunakan untuk mengirimkan data ke server. Berlaku jika
mengirim data dalam bentuk method post.
Nilai : application/x-www-form-urlencoded, nilai default
multipart/form-data, jika mengirimkan/menyertakan input berjenis file.
teks/plain
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
HTML Form [Elemen]
• <label> <label for="fname">First name:</label>
<input type="text" id="fname" name="fname">
• <input>
<h2>The input Element</h2>
• <select>
<form action=”#">
• <textarea> <label for="fname">First name:</label><br>
• <button> <input type="text" id="fname" name="fname"><br><br>
<input type="submit" value="Submit">
• <fieldset> </form>
• <legend>
• <datalist>
• <output>
• <option>
Daftar Lengkap
• <optgroup> https://www.w3schools.com/html/html_form_elements.asp
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
HTML Form [Elemen: input]
• <input type="button"> • <input type="password">
• <input type="checkbox"> • <input type="radio">
• <input type="color"> • <input type="range">
• <input type="date"> • <input type="reset">
• <input type="datetime-local"> • <input type="search">
• <input type="email"> • <input type="submit">
• <input type="file"> • <input type="tel">
• <input type="hidden"> • <input type="text"> (default value)
• <input type="image"> • <input type="time">
• <input type="month"> • <input type="url">
• <input type="number"> • <input type="week">
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Contoh HTML Form [Elemen: input]
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Contoh HTML Form [Elemen: select]
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Contoh HTML Form [Elemen: textarea]
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Contoh HTML Form [Elemen: Fieldset dan Legend]
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Tugas Form
Buatlah form seperti tampak berikut ini tanpa menggunakan CSS, atur tata letak
sedemikian rupa menggunakan Teknik table!!!
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a
Sekian
TERIMAKASIH
Te k n i k I n f o r m a t i k a – U N I S N U J e p a r a