# Html Asoslari

**Html**-bu Saytning Suyakgi hisoblanadi.

**Html  kengaytmasi** (**Hyper text Markup Language -** Giper matinli belgilash tilidir)

:exclamation:Html Dastulash tili emas&#x20;

:white\_check\_mark: "HTML" da hujjat Strukturasi

```html
<!DOCTYPE html>
<html>
<head>
    <title>Sayt Sarlavhasi Qoyiladi</title>
</head>
<body>
    Bu Yerda Cod Yoziladi
</body>
</html>
```

:exclamation:\<!DOCTYPE html> - Html5 Ekanligini bildiradi

:exclamation:\<html> - Hamma hujjatni o'zida saqlaydi

:exclamation:\<head> - Bosh qismi hisoblanadi. O'zida **meta** ma'lumotlarini saqlaydi

:exclamation:\<title> - Saytning nomi

:exclamation:\<body> - Tana qismi hisoblanadi. Hamma yozgan Codimiz shu **body** qismida yoziladi

## Element Nima ? va necha xil bo'ladi

1. Bo'sh Elementlar (Empty Elements)
2. Ichki Elementlar (Nested Elements)
3. "Attribute" lar

&#x20;:white\_check\_mark: Elementlar 2 ga bolinadi Juft element va Toq element yani Bo'sh element

{% hint style="success" %}
Element Nima ?
{% endhint %}

<figure><img src="/files/URT0KVsWRqURnZg5Smv9" alt=""><figcaption><p>Elementlarning  korinishi</p></figcaption></figure>

## Misol uchun:

```html
<h1> Salom </h1>
<p> salom </p>
```

{% hint style="success" %}
Bo'sh Elementlar
{% endhint %}

<figure><img src="/files/vx311Hh2XAknugFe2QWC" alt=""><figcaption><p>Toq element</p></figcaption></figure>

## Misol uchun bo'sh elementlarga:

```html
<br>
<hr>
<img src="rasm nomi" alt="rasm chiqmadi">
```

## Ichki Elementlar

<figure><img src="/files/CywPeoHr8AicxiYklYxT" alt=""><figcaption><p>korinish</p></figcaption></figure>

htmlda yozilishi

```html
<ul>
    <li>Sardor</li>
    <li>Begzod</li>
    <li>Sherzod</li>
</ul>
```

Attribute nima ?

{% hint style="info" %}
Attribute har doim ochuvchi tagda joylashgan boladi masalan: &#x20;

\<h1 <mark style="color:red;">class</mark>="<mark style="color:green;">**class nomi**</mark>">  salom\</h1>
{% endhint %}

<figure><img src="/files/unW1DD7cgZL5aliPun7U" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://kamolxoja.gitbook.io/html/html-asoslari.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
