Kirish || Ro'yhatdan o'tish

KutubxonaHTML darslari

Dars 14

screen
14-darsimizda attribytlat haqida o'tamiz, yani forma yaratishda ishlatilinadigan maydonlar. misol:

<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pattern attribute</title>
</head>

<body>

<!--Validate Country Code-->
<form>
SHAXAR KODI:
<input type="text" name="country_code" pattern="[A-Za-z]" title="Three letter country code">
<input type="submit">
</form>

<form>
PAROL:
<input type="password" pattern=".{6,}" title="Six or more characters">
<input type="submit">
</form>

<form>
PAROL:
<input type="password" pattern="(?=.*d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters">
<input type="submit">
</form>

</body>

</html>

Namuna yuqoridagi rasmda, kodda parolni 8 tadan kam yozsangiz xabar beriladi. Siz ham sinab ko'ring.
#dars14
19.02.2019 / 14:47

Do'stlaringizga ulashing:
TXT formatda yuklash

Navigatsiya

Asosiy sahifa
Telegramdegi rasmiy kanal
uZaFaRaP@list.ru
Sayt haqida
Statistika

© uZaFaRaP.UZ | 2018-2019