repl.it
@ulisesantana/

Web Native Form Validation

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <form>
        <input
          id="choose"
          name="i_like"
          placeholder="Números"
          pattern="[0-9]*"
          required
        />
        <span
          class="feedback"
          data-error="Números árabes (1,2,3,4...)"
          data-success="Todo correcto bro"
        ></span>
        <button>Enviar</button>
      </form>
  </body>
</html>
result
console
?