Name Attribute

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Name attribute</title>
</head>
<body>
    <form action="https;//server">
    <label for="username">Enter username:</label>
    <!-- Here NAME attribute is displayed in URL -->


    <input type="text" placeholder="username" id="username" name="username"/>
<button>submit</button>
</form>
<div>
    <form action="https://www.youtube.com/results">
        <label for="search">search</label>
        <input type="text" placeholder="search in youtube" id="search"  name="search_query"/>
        <button>search</button>


</div>
</form>
</body>
</html>

Comments

Popular posts from this blog

TextArea

unordered list with image link

Select input form