About the author


Author: https://t.me/ahillary

Resources


Channel: https://t.me/semolina_code_python

Chat: https://t.me/python_with_ahillary

YouTube: https://www.youtube.com/@semolinacode

Coding training: https://t.me/how_to_code_web3

Private group with software: https://t.me/arbuzerspublic

Основы HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Document</title>
</head>
<body>
    <h1>Hello, World!!</h1>
    <div id="first">
        <b>Жирный</b>
        <i>Наклонный</ i>

        <b>Жирный 2</b>
        <br>
        <i>Наклонный 2</i>

        <p>Новый параграф</p>
    </div>
    <div>
        <p>Список</p>
        <ul>
            <li>Элемент 1</li>
            <li>Элемент 2</li>
            <li>Элемент 3</Li>
        </ul>
    </div>
    <div>
        <a href="lalala.com">ссылочка</a>
        <p>Какой-<a href="link.com">то</a> текст<span class="exclamation-point">!!</span></p>
    </div>
</body>
</html>

Основы CSS

h1 {
    color: red;
    text-decoration: none;
}

a {
    text-decoration: none;
}

div {
    background-color: aqua;
    margin: 50px;
    padding: 20px;
    padding-left: 30px;
}

body {
    background-color: #f0f0f0f0;
}

#first {
    background-color: blueviolet;
}

.exclamation-point {
    font-size: 30pt;
}

CSS селекторы

Если ищем элемент, у которого несколько классов, то селектор будет выглядеть так: .class1.class2.class3