CODEBASE_FRONTEND Telegram 920
⚙️ Что такое атрибут required в HTML и зачем он используется?

Атрибут required делает поле формы обязательным для заполнения.

Если пользователь попытается отправить форму без значения — браузер покажет предупреждение.


➡️ Пример:

<form>
<label>
Email:
<input type="email" required>
</label>
<button type="submit">Отправить</button>
</form>


🗣️ Почему полезно:

• Проверка происходит прямо в браузере, без JavaScript
• Повышает удобство для пользователя
• Работает с <input>, <textarea>, <select>

required — простой способ добавить валидацию в форму «из коробки».


CodeBase | Frontend | #Основы
Please open Telegram to view this post
VIEW IN TELEGRAM
👍51



tgoop.com/codebase_frontend/920
Create:
Last Update:

⚙️ Что такое атрибут required в HTML и зачем он используется?

Атрибут required делает поле формы обязательным для заполнения.

Если пользователь попытается отправить форму без значения — браузер покажет предупреждение.


➡️ Пример:

<form>
<label>
Email:
<input type="email" required>
</label>
<button type="submit">Отправить</button>
</form>


🗣️ Почему полезно:

• Проверка происходит прямо в браузере, без JavaScript
• Повышает удобство для пользователя
• Работает с <input>, <textarea>, <select>

required — простой способ добавить валидацию в форму «из коробки».


CodeBase | Frontend | #Основы

BY CodeBase | Frontend


Share with your friend now:
tgoop.com/codebase_frontend/920

View MORE
Open in Telegram


Telegram News

Date: |

On Tuesday, some local media outlets included Sing Tao Daily cited sources as saying the Hong Kong government was considering restricting access to Telegram. Privacy Commissioner for Personal Data Ada Chung told to the Legislative Council on Monday that government officials, police and lawmakers remain the targets of “doxxing” despite a privacy law amendment last year that criminalised the malicious disclosure of personal information. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance. Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations. The best encrypted messaging apps
from us


Telegram CodeBase | Frontend
FROM American