Značka titulků v HTML - Práce značky titulků v HTML s příklady

Obsah:

Anonim

Úvod do značky titulků v HTML

Značka titulek v HTML se používá s tabulkou. Používá se k označení názvu tabulky. značka se používá přesně poté

štítek. V jednu chvíli lze použít pouze jednu značku titulků. S pomocí CSS je možné zapadnout do tabulky v responzivním formátu webového designu.

tag se používá v těle tabulky. Poté se používá jako první značka

štítek.
je kombinace různých značek jako pro vytváření řádků tabulky a
. Mezi těmito značkami tag je důležitý při vytváření tabulky, která se používá k vytvoření hlavy tabulky,
slouží k vytvoření sloupce tabulky.

Syntax

  • Podívejme se na skutečnou syntaxi pro definování značky Caption v HTML kódu:

title text

  • Jak je uvedeno výše, kódová značka uzavřená v štítek. Dává vašemu stolu název. Poté se pod tímto titulkem zobrazí celá tabulka.

    Seznam značek titulků v HTML

    • : Dejte titulek ke stolu
    : značka uzavřená s
    štítek
  • : Chcete-li vytvořit hlavu tabulky, sloupec a řádek
  • : Nastavení zarovnání titulku.
  • Proč používáme Caption Tag v HTML?

    • Kdykoli se chystáme definovat některá data do tabulkového formátu pomocí tabulky.
    • Takže pro zobrazení těchto dat v tabulce s nějakým jedinečným názvem je hlavní heslo uživatele. Tento druh názvu se zobrazuje pomocí značky v HTML.
    • Toto je uzavřeno mezi počáteční a koncovou značkou, která je umístěna za
    štítek. Jedna tabulka musí mít v těle tabulky jednu značku titulků.

    Práce značky titulků v HTML

    Jako dříve jsme diskutovali, že značka tagu se používá se značkou Table. Používá se s různými atributy, jako jsou běžné atributy, globální atributy a atributy událostí.

    Nyní uvidíme, jak jsou tyto atributy užitečné při práci se značkou titulku:

    1. Zarovnat : Tento atribut se používá s některými hodnotami pro zarovnání titulku s odkazem na tabulku. Hodnoty v něm obsažené jako: vlevo, vpravo, nahoře a dole.

    2. Globální atributy : globální atributy v HTML jsou podporovány značkou.

    • accesskey: Tento prvek funguje jako zkratka pro aktivaci nebo zaostření určitého prvku.
    • dir: Používá se pro správné nasměrování textu v obsahu prvku.
    • class: classnames se používají k definování css k určitému prvku v HTML. Jeden může použít jeden nebo dva názvy tříd pro určitý prvek a dát jim vlastnosti css.
    • contenteditable: Tento atribut se používá k definování počasí, které lze v daném prvku obsahu upravit nebo ne.
    • draggable: Používá se k definování počasí, které daný prvek může nebo nemůže uživatel vyvolat.
    • dropzone: Tento atribut souvisí s atributem, který lze přetáhnout. Používá se ke kopírování nebo přesouvání prvku, když je umístěn na konkrétní místo.
    • id: id to element se používá k definování jedinečného identifikačního jména pro konkrétní prvek.
    • lang: Tento atribut ve značce používaný k definování jazyka, ve kterém je obsah psán. pravopis gramaticky nebo
    • Kontrola pravopisu: Tento atribut uvádí, že prvek je kontrolován pravopisem a gramaticky.
    • style: Toto je velmi důležitý atribut používaný ve značce titulků pro poskytnutí vložené vlastnosti CSS prvku.
    • přeložit: nejdůležitější atribut, který uvádí podrobnosti o prvku, jako je počasí, může být přeložen či nikoli.

    3. Atributy události: Značka HTML zpracovává také různé atributy událostí, jsou následující:

    • onafterprint: Tato událost byla úspěšně spuštěna, jakmile se dokument vytiskne.
    • onbeforeprint: Tento druh skriptu se spustí před skutečným tiskem dokumentu.
    • onbeforeunload: Tento skript se spustí, když se náš dokument bude uvolňovat.
    • onerror: tento atribut události je spuštěn, když se v dokumentu vyskytne chyba.
    • onload: tento skript vygenerovaný po dokončení skutečného načítání stránky.
    • onmessage: pokaždé, když je spuštěna zpráva, dojde k této události.

    Příklady

    Níže jsou uvedeny některé příklady:

    Příklad č. 1

    Zde je příklad ukazující, jak přesně bude značka použita v HTML:

    Kód:


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester


    table,
    th,
    td (
    border: 1px solid blue;
    )
    #emp_details (
    font-size:20px;
    color:crimson;
    font-style:italic;
    )


    Employee Details
    Firstname
    Lastname
    EmpId
    Age
    Designation

    Roota
    Mittal
    9110
    32
    Marketing Head

    John
    Roy
    9111
    28
    Sales Head

    Dinesh
    Shetty
    9112
    43
    Developer

    Rucha
    Dev
    9113
    24
    Web Developer

    Niks
    Raw
    9114
    45
    Tester

    Výstup:

    Příklad č. 2

    Zde je další příklad ukazující, jak přesně bude značka použita s atributem zarovnání s vloženým CSS, zarovnání titulku vlevo:

    Kód:

    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2


    table, th, td (
    border: 2px solid red;
    border-collapse: collapse;
    )


    Maharashtra Elections Results
    Sr No.
    Parties
    No of seats

    1
    BJP
    104

    2
    Shiv Sena
    56

    3
    Nationalist Congress Party
    54

    4
    Congress
    44

    5
    Bahujan Vikas Aaghadi
    3

    6
    Muslimeen Prahar Janshkti party
    2

    Výstup:

    Příklad č. 3

    Toto je příklad značky k zarovnání nadpisu vpravo od tabulky s interním kódem CSS:

    Kód:


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram


    table,
    th,
    td (
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    )
    .india(
    text-align: right;
    color: blue;
    font-weight: bold;
    )


    State & Capitals
    State
    Capital

    Maharashtra
    Mumbai

    Goa
    Panaji

    Assam
    Dispur

    Haryana
    Chandigarh

    Kerala
    Thriuvanthaouram

    Výstup:

    Závěr - Titulek v HTML

    Ze všech výše uvedených podrobností týkajících se značky titulků jsou vysvětleny termíny, což se používá k označení názvu tabulky. titulek je vložen mezi značku do těla tabulky. Práce na různých atributech, jako je zarovnání atributů, globálních atributech a některých atributech události, spustí událost na tagu titulku.

    Doporučené články

    Toto byl průvodce značkami titulků v HTML. Také zde diskutujeme o jejich zavedení, seznamu značek titulků a jejich fungování. Další informace naleznete také v následujících článcích -

    1. Značky tabulky HTML
    2. Verze Html
    3. Nové prvky HTML5
    4. Prvky formuláře HTML