Skip to content

Commit fcc2eec

Browse files
authored
Merge pull request google#137 from jajodiaraghav/replace-tt-with-kbd-tag
Closes google#133: Replace tt with kbd tag
2 parents 49a7830 + c527a27 commit fcc2eec

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/example-captcha.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@
6262
<h1>reCAPTCHA Example</h1>
6363
<?php if ($siteKey === '' || $secret === ''): ?>
6464
<h2>Add your keys</h2>
65-
<p>If you do not have keys already then visit <tt>
65+
<p>If you do not have keys already then visit <kbd>
6666
<a href = "https://www.google.com/recaptcha/admin">
67-
https://www.google.com/recaptcha/admin</a></tt> to generate them.
68-
Edit this file and set the respective keys in <tt>$siteKey</tt> and
69-
<tt>$secret</tt>. Reload the page after this.</p>
67+
https://www.google.com/recaptcha/admin</a></kbd> to generate them.
68+
Edit this file and set the respective keys in <kbd>$siteKey</kbd> and
69+
<kbd>$secret</kbd>. Reload the page after this.</p>
7070
<?php
7171
elseif (isset($_POST['g-recaptcha-response'])):
7272
// The POST data here is unfiltered because this is an example.
7373
// In production, *always* sanitise and validate your input'
7474
?>
75-
<h2><tt>POST</tt> data</h2>
76-
<tt><pre><?php var_export($_POST); ?></pre></tt>
75+
<h2><kbd>POST</kbd> data</h2>
76+
<kbd><pre><?php var_export($_POST); ?></pre></kbd>
7777
<?php
7878
// If the form submission includes the "g-captcha-response" field
7979
// Create an instance of the service using your secret
@@ -100,11 +100,11 @@
100100
<h2>Something went wrong</h2>
101101
<p>The following error was returned: <?php
102102
foreach ($resp->getErrorCodes() as $code) {
103-
echo '<tt>' , $code , '</tt> ';
103+
echo '<kbd>' , $code , '</kbd> ';
104104
}
105105
?></p>
106-
<p>Check the error code reference at <tt><a href="https://developers.google.com/recaptcha/docs/verify#error-code-reference">https://developers.google.com/recaptcha/docs/verify#error-code-reference</a></tt>.
107-
<p><strong>Note:</strong> Error code <tt>missing-input-response</tt> may mean the user just didn't complete the reCAPTCHA.</p>
106+
<p>Check the error code reference at <kbd><a href="https://developers.google.com/recaptcha/docs/verify#error-code-reference">https://developers.google.com/recaptcha/docs/verify#error-code-reference</a></kbd>.
107+
<p><strong>Note:</strong> Error code <kbd>missing-input-response</kbd> may mean the user just didn't complete the reCAPTCHA.</p>
108108
<p><a href="/">Try again</a></p>
109109
<?php
110110
endif;

0 commit comments

Comments
 (0)