<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>S05: HTML Forms, Tables and Semantic Tags</title>
</head>
<body>
    <!-- div tag creates a container element used to hroup html elements -->
    <!-- header value is used for SEO -->
    <div>
        <h2>HTML Entities</h2>
    </div>
    <div id="section">
        <p>
            <em>Reserved characters in HTML (e.g &lt; or &gt;characters that can mix up with HTML Codes.)</em>
        </p>
        <!-- Defines an HTML Table -->
        <table border="1">
            <!-- Used to group table header contents -->
            <thead>
                <!-- Defines a table row -->
                <tr>
                    <th colspan="2">Entity</th>
                    <th>Description</th>
                </tr>
            </thead>
            <!-- Used to group table body contents -->
            <tbody>
                <!-- Defines a table data element -->
                <tr>
                    <td>&lt;</td>
                    <td>lt</td>
                    <td>Less than symbol</td>
                </tr>
                <tr>
                    <td>&#8369;</td>
                    <td>#8369</td>
                    <td>Peso Sign</td>
                </tr>
                <tr>
                    <td>&gt;</td>
                    <td>gt</td>
                    <td>Greater than symbol</td>
                </tr>
                <tr>
                    <td>&quot;</td>
                    <td>Quote</td>
                    <td>Double quotation mark</td>
                </tr>
                <tr>
                    <td>&apos;</td>
                    <td>apos</td>
                    <td>Single quotation mark</td>
                </tr>
                <tr>
                    <td>&amp;</td>
                    <td>amp</td>
                    <td>Ampersand</td>
                </tr>
                <tr>
                    <td>&utilde;</td>
                    <td>Utilde</td>
                    <td>U with ~</td>
                </tr>
                <tr>
                    <td>&ntilde;</td>
                    <td>ntilde</td>
                    <td>N with ~</td>
                </tr>
                <tr>
                    <td>&amp;</td>
                    <td>amp</td>
                    <td>Ampersand</td>
                </tr>
            </tbody>
            <!-- Used to group table footer contents -->
            <tfoot>
                <tr>
                    <th colspan="3">List of HTML Entities</th>
                </tr>
            </tfoot>
        </table>
    
        <h2>Forms</h2>
        <p>
            <em>
                Input elements that make up a form.
            </em>
        </p>
    </div>
    
    <div class="form">
        <!-- Creates an HTML form to capture user input -->
    <form action="https://google.com">

        <!-- Creates a label and allows for input field selection when click -->
        <label for="fullName">Full name:</label><br>
        <!-- Creates an input field to capture user input -->
        <input type="text" name="fullName" placeholder="Type your Full name">
    
        <br><br>
    
        <label for="birthDate">Birth Date:</label><br>
        <input type="text" name="birthDate" id="birthDate" placeholder="Type your Birthday" required>
    
        <br><br>
    
        <label for="age">Age:</label><br>
        <input type="date" name="age" id="age" placeholder="Type your age" required>
    
        <br><br>
    
        <!-- Creates a dropdown menu -->
        <label for="gender">Gender:</label><br>
        <select name="gender" id="gender">
            <option value="">Male</option>
            <option value="">Female</option>
        </select>
    
        <br><br>
    
        <label for="notes">Notes:</label><br>
        <!-- Creates a textbox for long response input. -->
        <textarea name="notes" id="notes" rows="5"></textarea>
    
        <br><br>
        
        <label for="newUser">New User:</label>
        <input type="radio" name="newUser" id="user-type1">
        <label for="user-type1">Yes</label>
    
        <input type="radio" name="newUser" id="user-type2">
        <label for="user-type2">No</label>
    
        <br><br>
    
        <Label>Role:</Label>
        <input type="checkbox" name="role1" id="role1" value="developer">
        <label for="role1">Developer</label>
        <input type="checkbox" name="role2" id="role2" value="student">
        <label for="role2">Student</label>
        <input type="checkbox" name="role3" id="role3" value="manager">
        <label for="role3">Manager</label>
    
        <br><br>
            <!-- Creates a button that will submit the form data -->
            <button type="submit">Submit</button>
            <!-- Creates a button to reset the form data -->
            <button type="reset">Reset</button>
    </form>
    </div>   
</body>
</html>