/
Coderdev
/
web-static-labs
Обзор
Документация
Войти
/
Coderdev
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
html/lab6/task6/index.html
60 строк
2 KB
Coderdev
1
12 май 2026, 12:37
12 май 2026, 12:37
d8ecd0f
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <title>Форма проекта</title> <style> .hidden { display: none; } form div { margin-bottom: 10px; } body{ display:flex; justify-content: center; align-items: center; } .center{ display: flex; justify-content: center; padding:10px; gap:10px; } </style> </head> <body> <form id="project-form"> <div> <input type="text" id="surname" placeholder="Фамилия" required> <input type="text" id="name" placeholder="Имя" required> <input type="text" id="patronymic" placeholder="Отчество" required> </div> <div class="center"> <label><input type="radio" name="gender" value="Мужской" checked> Мужской</label> <label><input type="radio" name="gender" value="Женский"> Женский</label> </div> <div class="center"> <select id="faculty"> <option value="ИТ">Информационные технологии</option> <option value="ПИ">Прикладная информатика</option> <option value="БИ">Бизнес-информатика</option> </select> </div> <div class="center"> <label><input type="checkbox" id="has-project"> Участие в проекте</label> </div> <div class="center"> <div id="project-name-container" class="hidden"> <input type="text" id="project-name" placeholder="Наименование проекта"> </div> </div> <div class="center"> <button type="button" id="save-btn">Сохранить</button> <button type="button" id="send-btn">Отправить</button> </div> </form> <script src="script.js"></script> </body> </html>