adc

clicks

How to create html form with input type date of birth?

Hi! this tutorial I am going to show you how to create html form with input type date of birth?. Please subscribe to the channel for more videos. #Login_form_with_date_of_birth.

 

 HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

 <!DOCTYPE html>
<html>
<head>
    <title>DATE OF BIRTH</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <form>
        Your Name <br>
        <input type="text" name="" placeholder="your name"> <br><br>
        Your Address <br>
        <input type="text" name="" placeholder="your address"> <br><br>

        Your Date of Birth <br>
        <select name="month">
            <option value="month">Month</option>
            <option value="january">January</option>
            <option value="february">February</option>
        </select>

        <select name="days">
            <option value="days">Days</option>
            <option value="1">1</option>
            <option value="2">3</option>
        </select>

        <select name="Year">
            <option value="year">Year</option>
            <option value="1985">1985</option>
            <option value="1988">1988</option>
            <option value="1990">1990</option>
        </select> <br><br>
        <input type="submit" name="" value="submit">
    </form>

</body>
</html>

CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

body{
    background-image: url(bg.jpg);
    background-size: cover;
}

form{
    margin: auto;
    padding: 20px;
    width: 500px;
    background-color: #561b39;
    font-size: 20px;
    color: white;
    font-family: sans-serif;
    opacity: 0.7;
}


input[type="text"]{
    padding: 5px;
    width: 80%;
    font-size: 18px;

}

input[type="submit"]{
    padding: 5px;
    font-size: 20px;
    width: 100px;
   
}


select{
    padding: 5px;
    font-size: 20px;
    background-color: white;
}

 Image link

                          Watch Videos

 

source code



 More Videos

 

 

 

 

How to create html form with input type date of birth? How to create html form with input type date of birth? Reviewed by easycoding on August 17, 2020 Rating: 5

No comments:

Powered by Blogger.