Breaking

Latihan15.html - Form Elements

Materi : Latihan15.html


Silakan copy paste ke notepad dan simpan dengan nama Latihan15.html. 
Kemudian jalankan menggunakan browser.


<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Page Description">
        <title>Form Elements</title>
    </head>
    <body>
        <h1>Form Basic Elements</h1>
        <form>
            <label for="input_name">Label for Input Box:</label>
            <input id ="input_name" type="text" placeholder="Placeholder">
            <p><input type="submit"> &nbsp;&nbsp; <input type="reset"></p>
        </form>
        <hr>
        <h1>Student Information Form</h1>
        <form>
            <p>
                <label for="input_name">Full Name:</label>
                <input id ="input_name" type="text" placeholder="Name here">                
            </p>
            <p>
                <label for="input_age">Age:</label>
                <input id ="input_age" type="text" placeholder="Your Age">
            </p>
            <p>
                <label for="input_hobbies">Hobbies:</label>
                <input id ="input_hobbies" type="text" placeholder="Seperate Hobbies with ,">            
            </p>
            <p><input type="submit" value="Send"> &nbsp;&nbsp; <input type="reset" value="Clear"></p>
        </form>
    </body>
</html>


Output