執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The input pattern attribute</h1> <p>A form with a search field that CANNOT contain the following characters: ' or "</p> <form action="/action_page.php"> <label for="search">Search:</label> <input type="search" id="search" name="search" pattern="[^'\x22]+" title="Invalid input"> <input type="submit"> </form> </body> </html>