ใช้รูปแบบ คุณลักษณะเพื่อตั้งค่านิพจน์ทั่วไปที่ตรวจสอบค่าขององค์ประกอบ คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้รูปแบบ แอตทริบิวต์ −
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<title>HTML novalidate attribute</title>
</head>
<body>
<form action = "" method = "get" novalidate>
Student Name<br><input type = "name" name = "sname"><br>
Rank<br><input type = "number" name = "rank"><br>
Student Country <br><input type = "text" name = "ccode" pattern="[A-Za-z]{3}" title = "country code"><br>
<input type = "submit" value = "Submit">
</form>
</body>
</html>