> For the complete documentation index, see [llms.txt](https://kaze.gitbook.io/qa-theory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kaze.gitbook.io/qa-theory/web/chto-takoe-html-css-javascript.md).

# Что такое HTML/CSS/JavaScript?

HTML, CSS и JavaScript — это три базовые технологии веб-разработки, каждая из которых выполняет свою роль в создании веб-страниц.

***

### 1️⃣ **HTML (HyperText Markup Language)**

* **Назначение:** структура веб-страницы.
* Определяет, какие элементы есть на странице: заголовки, параграфы, изображения, ссылки, формы и т.д.
* Пример:

```html
<h1>Привет, мир!</h1>
<p>Это абзац текста.</p>
<img src="image.png" alt="Картинка">
```

* **Использование:** QA проверяет корректность разметки, наличие нужных элементов и атрибутов, валидность HTML.

***

### 2️⃣ **CSS (Cascading Style Sheets)**

* **Назначение:** оформление и визуальное представление HTML-элементов.
* Управляет цветами, шрифтами, отступами, расположением элементов, анимациями.
* Пример:

```css
h1 {
  color: blue;
  font-size: 24px;
}
p {
  margin: 10px 0;
}
```

* **Использование:** QA проверяет соответствие макету, адаптивность верстки, правильное применение стилей и медиа-запросов.

***

### 3️⃣ **JavaScript**

* **Назначение:** интерактивность и динамика на странице.
* Позволяет реагировать на действия пользователя, менять контент без перезагрузки, работать с API, валидировать формы.
* Пример:

```javascript
document.getElementById("btn").addEventListener("click", () => {
  alert("Кнопка нажата!");
});
```

* **Использование:** QA проверяет работу скриптов, обработку событий, валидацию форм, корректность AJAX-запросов и динамического контента.

***

### 4️⃣ Краткая роль каждой технологии

| Технология | Основная задача            | Примеры QA проверки                       |
| ---------- | -------------------------- | ----------------------------------------- |
| HTML       | Структура страницы         | Элементы присутствуют, атрибуты корректны |
| CSS        | Внешний вид и оформление   | Соответствие макету, адаптивность         |
| JavaScript | Динамика и интерактивность | Работа событий, AJAX, валидация форм      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kaze.gitbook.io/qa-theory/web/chto-takoe-html-css-javascript.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
