Тег подписи в HTML - Работа тега заголовка в HTML с примерами

Содержание:

Anonim

Введение в тег заголовка в HTML

Тег заголовка в HTML используется вместе с таблицей. Он используется для представления заголовка таблицы. тег используется именно после

тег. Одновременно можно использовать только один тег заголовка. С помощью CSS можно приспособить таблицу в формате адаптивного веб-дизайна.

тег используется в теле таблицы. Он используется в качестве первого тега после

тег.
это сочетание разных тегов, таких как для создания строк таблицы и
, Среди этих тегов тег важен при создании таблицы, которая используется для создания заголовка таблицы,
для создания столбца таблицы.

Синтаксис

  • Давайте посмотрим фактический синтаксис для определения тега подписи в HTML-коде:

title text

  • Как показано выше кодовый тег в тег. Это даст название вашей таблице. После этого все данные таблицы будут отображаться под этим заголовком.

    Список тегов подписи в HTML

    • : Дать подпись к таблице
    : тег заключен в
    тег
  • : Создать заголовок таблицы, столбец и строку
  • : Установить выравнивание подписи.
  • Почему мы используем заголовок в HTML?

    • Всякий раз, когда мы собираемся определить некоторые данные в табличном формате с помощью таблицы.
    • Поэтому показ этих данных в таблице с некоторым уникальным заголовком является основным девизом пользователя. Этот вид заголовка отображается с помощью тега в HTML.
    • Это заключено между начальным и конечным тегом, который помещается после
    тег. У одной таблицы должен быть один тег заголовка в теле таблицы.

    Работа тега заголовка в HTML

    Как и ранее, мы обсуждали, что тег заголовка используется с тегом таблицы. Он используется с различными атрибутами, такими как общие атрибуты, глобальные атрибуты и атрибуты событий.

    Теперь мы увидим, как эти атрибуты полезны при работе с тегом заголовка:

    1. align : этот атрибут используется с некоторыми значениями для выравнивания заголовка со ссылкой на таблицу. Значения, включенные в него, такие как: слева, справа, сверху и снизу.

    2. Глобальные атрибуты : глобальные атрибуты в HTML поддерживаются тегом.

    • accesskey: этот элемент работает как ярлык для активации или фокусировки определенного элемента.
    • dir: используется для указания правильного направления текста в содержимом элемента.
    • class: classnames используются для определения CSS для конкретного элемента в HTML. Можно использовать одно или два имени класса для конкретного элемента и дать им свойства CSS.
    • contenteditable: этот атрибут используется для определения погоды, которую можно редактировать или нет в данном элементе контента.
    • draggable: используется для определения погоды, заданный элемент перетаскивается пользователем или нет.
    • dropzone: этот атрибут связан с перетаскиваемым атрибутом. Он используется для копирования или перемещения элемента, когда он упал в определенное место.
    • id: id to element используется для определения уникального идентификационного имени для конкретного элемента.
    • lang: Этот атрибут в теге используется для определения языка, на котором написано содержимое. написание грамматически или
    • Проверка орфографии: этот атрибут утверждает, что элемент проверяется с помощью правописания и грамматики.
    • style: Это очень важный атрибут, используемый в теге заголовка для предоставления встроенного CSS-свойства элементу.
    • translate: наиболее важный атрибут, чтобы дать подробную информацию об элементе, например, о погоде, может ли он быть переведен или нет.

    3. Атрибуты события: HTML-тег также обрабатывает различные атрибуты события:

    • onafterprint: это событие успешно сработало после печати документа.
    • onbeforeprint: этот вид сценария выполняется перед фактической печатью документа.
    • onbeforeunload: этот скрипт выполняется, когда наш документ будет выгружен.
    • onerror: этот атрибут события выполняется при возникновении ошибки в документе.
    • onload: этот скрипт генерируется при фактической загрузке страницы.
    • onmessage: при каждом запуске сообщения это событие происходит.

    Примеры

    Ниже приведены некоторые примеры:

    Пример № 1

    Вот пример, показывающий, как именно тег будет использоваться в HTML:

    Код:


    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

    Выход:

    Пример № 2

    Вот еще один пример, показывающий, как именно тег будет использоваться с атрибутом align с встроенным CSS, выравнивая заголовок слева:

    Код:

    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

    Выход:

    Пример № 3

    Это использует пример тега, чтобы выровнять заголовок справа от таблицы с внутренним кодом CSS:

    Код:


    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

    Выход:

    Заключение - тег заголовка в HTML

    Из всех вышеперечисленных деталей касательно тега заголовка поясняются термины, это используется для придания заголовка таблице. заголовок заключен между тегами в тело таблицы. Он работает с различными атрибутами, такими как атрибуты выравнивания, глобальные атрибуты, а также с некоторыми атрибутами события, чтобы инициировать событие в теге заголовка.

    Рекомендуемые статьи

    Это руководство по тегу заголовка в HTML. Здесь мы также обсуждаем их введение, список подписи и тег работы. Вы также можете взглянуть на следующие статьи, чтобы узнать больше:

    1. Теги таблицы HTML
    2. Версии HTML
    3. HTML5 Новые элементы
    4. Элементы формы HTML