html form google recaptch add code example
Example 1: embed recaptcha in html
<!DOCTYPE html>
<html lang="en">
<head>
<title>How to Integrate Google “No CAPTCHA reCAPTCHA” on Your Website</title>
</head>
<body>
<form action="" method="post">
<label for="name">Name:</label>
<input name="name" required><br />
<label for="email">Email:</label>
<input name="email" type="email" required><br />
<div class="g-recaptcha" data-sitekey="6LcePAATAAAAAGPRWgx90814DTjgt5sXnNbV5WaW"></div>
<input type="submit" value="Submit" />
</form>
<script src='https://www.google.com/recaptcha/api.js'></script>
</body>
</html>
Example 2: embed recaptcha in html
<script src='https://www.google.com/recaptcha/api.js'></script>