Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Form HTML 5</title>
- <style>
- input {
- background-color:#f2f2f2;
- font-size:24px;
- font-family: calibri;
- color:#ddd;
- }
- textarea {
- resize:none;
- overflow:auto; <!--untuk scroll, tidak ngefek-->
- }
- </style>
- </head>
- <body>
- <form>
- Username : <input type="text" placeholder="username" required="required"><br>
- Password : <input type="password" placeholder="password" required="required"><br>
- Date : <input type="date"><br>
- Email : <input type="email"><br>
- Age: <input type="number" min="2" max="100"><br>
- Gender : <input type="radio" name="jk" checked="checked">Male
- <input type="radio" name="jk">Female<br>
- City : <select>
- <option>Surabaya</option>
- <option selected="selected">Bandung</option>
- <option>Jakarta</option>
- </select><br>
- Telephone : <input type="tel" max="12"><br>
- Range : <input type="range" min="100" max="500"><br>
- Color : <input type="color"><br>
- Time : <input type="time"><br>
- File : <input type="file"><br>
- Hobby : <input type="checkbox" name="hobby" value="makan">Makan<br>
- <input type="checkbox" name="hobby" value="tidur">Tidur<br>
- <input type="checkbox" name="hobby" value="makanlagi">Makan Lagi<br>
- Information : <textarea cols="20" rows="5"></textarea><br>
- Video : <video width="640" height="480" autoplay controls> <!-- value: muted, autoplay, controls, loop, preload. extension yg bisa: ogg,mp4,webm-->
- <source src="videoplayback.mp4" type="video/mp4">
- Your browser does not supported the video tag
- </video><br>
- Audio : <audio controls> <!-- value: muted-->
- <source src="JENNIE (BLACKPINK) - 'SOLO' LYRICS (EngRomHan가사).mp3" type="audio/mp3">
- Your browser does not supported the video tag
- </audio><br>
- <input type="submit" value="login"><br>
- </form>
- <br>
- Google Search :
- <form action="https://www.google.co.id/search">
- <input type="text" name=q>
- <input type="submit" value="Cari">
- </form>
- Yahoo :
- <form method="get" action="http://id.search.yahoo.com/search">
- <input type="text" name=p placeholder="Yahoo search">
- <input type="submit" value="Cari">
- </form><br>
- <iframe width="640" height="480" src="https://www.youtube.com/embed/dGcGbF4ex5o" frameborder="5" allowfullscreen></iframe>
- <!--https://www.youtube.com/watch?v=dGcGbF4ex5o (watch?v= diganti jadi embed/)-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement