Skip to content

Commit

Permalink
feat: add JavaScript to code snippet (#2536)
Browse files Browse the repository at this point in the history
* feat: add JavaScript to code snippet

* feat: add form element

* fix: remove JS and reformat label

---------

Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
  • Loading branch information
3 people committed Aug 2, 2023
1 parent e7e1be0 commit cf8314f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions live-examples/html-examples/input/url.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<label for="url">Enter an https:// URL:</label>

<input type="url" name="url" id="url" placeholder="https://example.com" pattern="https://.*" size="30" required />
<form>
<label for="url">Enter an https:// URL:</label>
<input
type="url"
name="url"
id="url"
placeholder="https://example.com"
pattern="https://.*"
size="30"
required
/>
</form>

0 comments on commit cf8314f

Please sign in to comment.