运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The input pattern attribute</h1> <p>A form with a URL field that must start with http:// or https:// followed by at least one character:</p> <form action="/action_page.php"> <label for="website">Homepage:</label> <input type="url" id="website" name="website" pattern="https?://.+" title="Include http://"> <input type="submit"> </form> </body> </html>