do tworzenia wierszy tabeli i służy do tworzenia kolumny tabeli.
Składnia
Zobaczmy rzeczywistą składnię definiowania znacznika Caption w kodzie HTML:
title text
Jak pokazano powyżej tag kodu w załączeniu
etykietka. Daje tytuł twojemu stołowi. Następnie cała tabela będzie wyświetlana pod tym podpisem.
Lista tagów napisów w HTML
: Daj podpis do tabeli
: tag dołączony do
etykietka
: Aby utworzyć nagłówek, kolumnę i wiersz tabeli
: Aby ustawić wyrównanie podpisu.
Dlaczego używamy Caption Tag w HTML?
Ilekroć zamierzamy zdefiniować niektóre dane w formacie tabelarycznym za pomocą tabeli.
Tak więc głównym motto użytkownika jest wyświetlanie tych danych w tabeli z jakimś unikalnym tytułem. Ten rodzaj tytułu jest wyświetlany za pomocą znacznika w HTML.
Jest to zawarte pomiędzy znacznikiem początkowym i końcowym, którego umieszcza się po
etykietka. Jedna tabela musi mieć jeden znacznik podpisu w treści tabeli.
Działanie tagu podpisu w HTML
Jak wspomniano wcześniej, znacznik podpisu jest używany ze znacznikiem Table. Jest używany z różnymi atrybutami, takimi jak atrybuty wspólne, atrybuty globalne i atrybuty zdarzeń.
Teraz zobaczymy, w jaki sposób te atrybuty są pomocne w działaniu tagu podpisu:
1. align : ten atrybut jest używany z niektórymi wartościami służącymi do wyrównywania podpisu w odniesieniu do tabeli. Zawarte w nim wartości, takie jak: lewy, prawy, górny i dolny.
2. Atrybuty globalne: atrybuty globalne w HTML są obsługiwane przez tag.
klucz dostępu: ten element działa jako skrót do aktywacji lub skupienia określonego elementu.
reż: Służy do nadania odpowiedniego kierunku tekstowi w treści elementu.
class: nazwy klas służą do definiowania css dla określonego elementu w HTML. Można użyć jednej lub dwóch nazw klas dla poszczególnych elementów i nadać im właściwości css.
contenteditable: ten atrybut służy do definiowania pogody, którą można edytować lub nie w danym elemencie treści.
przeciągalny: służy do definiowania pogody, którą dany element może przeciągać lub nie.
dropzone: ten atrybut jest powiązany z atrybutem przeciągalnym. Służy do kopiowania lub przenoszenia elementu po upuszczeniu w określone miejsce.
id: id na element służy do zdefiniowania unikalnej nazwy identyfikacyjnej dla konkretnego elementu.
lang: ten atrybut znacznika służy do definiowania języka, w którym zapisywana jest treść. pisownia gramatyczna lub
Sprawdzanie pisowni: ten atrybut stwierdza, że element jest sprawdzany pod względem pisowni i gramatycznie.
styl: Jest to bardzo ważny atrybut używany w znaczniku podpisu do zapewnienia wbudowanej właściwości CSS elementu.
translate: najważniejszy atrybut służący do podania szczegółów elementu, takiego jak pogoda, może zostać przetłumaczony lub nie.
3. Atrybuty zdarzeń: Tag HTML obsługuje również różne atrybuty zdarzeń, są one następujące:
onafterprint: To zdarzenie uruchomiono pomyślnie po wydrukowaniu dokumentu.
onbeforeprint: Ten rodzaj skryptu jest wykonywany przed faktycznym wydrukowaniem dokumentu.
onbeforeunload: Skrypt ten zostanie wykonany, gdy nasz dokument zostanie rozładowany.
onerror: ten atrybut zdarzenia jest wykonywany, gdy w dokumencie wystąpi błąd.
onload: ten skrypt generowany po zakończeniu faktycznego ładowania strony.
onmessage: za każdym razem, gdy komunikat jest wyzwalany, zdarzenie to występuje.
Przykłady
Poniżej podano kilka przykładów:
Przykład 1
Oto przykład pokazujący, jak dokładnie tag będzie używany w HTML:
Kod:
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
Wynik:
Przykład nr 2
Oto kolejny przykład pokazujący, jak dokładnie tag ma być użyty z atrybutem align z wbudowanym CSS, wyrównując podpis po lewej stronie:
Kod: 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
Wynik:
Przykład nr 3
Wykorzystuje to przykładowy znacznik, aby wyrównać tytuł po prawej stronie tabeli z wewnętrznym kodem CSS:
Kod:
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
Wynik:
Wniosek - Tag z napisami w HTML
Ze wszystkich powyższych szczegółów dotyczących tagu podpisu wyjaśnia warunki, służy on do nadania tytułu tabeli. caption jest zawarty pomiędzy znacznikiem w treści tabeli. Działa na różnych atrybutach, takich jak wyrównanie atrybutów, atrybuty globalne, a także niektóre atrybuty zdarzenia, które powodują wyzwolenie zdarzenia na znaczniku caption.
Polecane artykuły
To był przewodnik po tagach napisów w HTML. Tutaj omawiamy również ich wprowadzenie, listę tagów podpisów i działanie. Możesz także zapoznać się z następującymi artykułami, aby dowiedzieć się więcej -
Tagi tabeli HTML
Wersje HTML
HTML5 Nowe elementy
Elementy formularza HTML