/
Yulche
/
111
Обзор
Документация
Войти
/
Yulche
/
111
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
webit2.html
174 строки
4 KB
Yulche
Пестряева_БИУ_2задание
22 янв 2025, 14:31
22 янв 2025, 14:31
7752082
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Практика HTML & CSS</title> <style> body { font-family: sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; } .container { max-width: 960px; margin: 0 auto; padding: 20px; flex: 1; } header { background-color: #3498db; color: white; text-align: center; padding: 20px 0; } header h1 { margin: 0; } .section { background-color: #f0f0f0; margin-bottom: 20px; padding: 20px; border: 1px solid #ccc; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); border-radius: 8px; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; font-weight: bold; } form { margin-top: 20px; display: flex; flex-direction: column; width: 70%; } form label { margin-bottom: 5px; } form input, form textarea{ margin-bottom: 10px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; } form input{ height: 20px; } form textarea{ height: 100px; } form button { background-color: #4caf50; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } form button:hover{ background-color: #45a049; } blockquote { border-left: 5px solid #3498db; padding: 10px; font-style: italic; margin-left: 0; } footer { background-color: #3498db; color: white; text-align: center; padding: 10px 0; margin-top: 20px; } </style> </head> <body> <header> <h1>Добро пожаловать на страницу</h1> </header> <div class="container"> <section class="section"> <h2>Цели</h2> <p>Научиться сочетать HTML и CSS для создания более стильных веб-страниц.</p> </section> <section class="section"> <h2>Таблица пользователей</h2> <table> <thead> <tr> <th>Имя</th> <th>Возраст</th> </tr> </thead> <tbody> <tr> <td>Иван Йоу</td> <td>25</td> </tr> <tr> <td>Мария Какдела</td> <td>30</td> </tr> <tr> <td>Игорь Супер</td> <td>22</td> </tr> </tbody> </table> </section> <section class="section"> <h2>Форма обратной связи</h2> <form> <label for="name">Имя:</label> <input type="text" id="name" name="name" required> <label for="comment">Комментарий:</label> <textarea id="comment" name="comment" required></textarea> <button type="submit">Отправить</button> </form> </section> <section class="section"> <h2>Цитата дня</h2> <blockquote> "Запомни: всего одна ошибка - и ты ошибся." - Джейсон Стетхем </blockquote> </section> </div> <footer> <p>Всем пис!</p> </footer> </body> </html>