A close-up shot of a person coding on a laptop, focusing on the hands and screen.

Struktura dokumentu HTML

<!DOCTYPE html>
<html lang="pl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tytuł strony</title>
</head>
<body>
    <h1>Witaj na mojej stronie!</h1>
    <p>To jest przykładowy tekst.</p>
</body>
</html>

Podstawowe znaczniki HTML

1. Nagłówki

<h1>Główny nagłówek</h1>
<h2>Podtytuł</h2>
<h3>Mniejszy nagłówek</h3>

2. Akapity i formatowanie tekstu

<p><strong>Pogrubiony</strong> tekst i <em>kursywa</em>.</p>

3. Listy

<ul>
    <li>Pierwszy element</li>
    <li>Drugi element</li>
</ul>

4. Hiperłącza

<a href="https://example.com">Kliknij tutaj</a>

5. Obrazy

<img src="obraz.jpg" alt="Opis obrazu">

6. Tabele

<table border="1">
    <tr>
        <th>Nagłówek 1</th>
        <th>Nagłówek 2</th>
    </tr>
    <tr>
        <td>Dane 1</td>
        <td>Dane 2</td>
    </tr>
</table>

Podsumowanie

Podobne wpisy