Answers for "ssearch on google when we click on search button using html"

1

ssearch on google when we click on search button using html

<?php
/**
 * search on google when we click submit button
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <title>Search on google</title>
</head>
<body>
    <div class="container">
        <h1 class="text-center text-primary">Search box</h1>
    <form action="https://www.google.com/search" method="get" >
        <!-- name must be 'q' because query aprameter in pass q -->
        <input type="text" name="q" placeholder="Search Here">
        <button type="submit" class="btn-sm btn-primary">search</button>
    </form>
    </div>
  
</body>
</html>
Posted by: Guest on October-05-2021

Code answers related to "ssearch on google when we click on search button using html"

Browse Popular Code Answers by Language