Lab 6 : Fundamentals of web technology





1. <!DOCTYPE html> - Defines the document type.
    <h2> - Defines HTML headings.
    <br> - Defines single line break.
    <label> - Defines a label for an <input> element.
    <p> - Defines a paragraph.
    <form> - Defines an HTML form for user input.


2. <!DOCTYPE html>

    <html>
    <body>

    <h2>LAB-06 HTML Forms</h2>

    <form action="/action_page.php">
    <label for="fname">First name:</label><br>
    <input type="text" id="fname" name="fname" value="">
    <label for="lname">Last name:</label>
    <input type="text" id="lname" name="lname" value=" "><br><br>
    <label for="id">ID:</label>
    <input type="text" id="id" ID="id" value=" ">
    <label for="age">Age:</label>
    <input type="text" id="age" Age="age" value=" "><br>
    <input type="submit" value="Submit">
    </form>

    <p>If you click the "submit" button, the form-data will be sent to a page called "/action_page.php".       </p>

    </body>
    </html>




Comments

Popular posts from this blog

Lab 8 : Fundamentals of web technology