para crear filas de tablas y es para crear una columna de tabla.
Sintaxis
Veamos la sintaxis real para definir la etiqueta Caption en el código HTML:
title text
Como se muestra arriba, la etiqueta de código incluida en
etiqueta. Le dará título a su mesa. Después de eso, todos los datos de la tabla se mostrarán debajo de este título.
Lista de etiquetas de subtítulos en HTML
: Dar título a la mesa
: etiqueta encerrada con
etiqueta
: Para crear encabezado de tabla, columna y fila
: Para establecer la alineación de los subtítulos.
¿Por qué usamos Caption Tag en HTML?
Siempre que vamos a definir algunos datos en formato tabular usando la tabla.
Por lo tanto, mostrar este dato en la tabla con un título único es el lema principal del usuario. Este tipo de título se muestra con la ayuda de la etiqueta en HTML.
Esto está encerrado entre la etiqueta inicial y final de la cual se coloca después
etiqueta. Una tabla debe tener una etiqueta de título en el cuerpo de la tabla.
Funcionamiento de la etiqueta de título en HTML
Como se mencionó anteriormente, la etiqueta de título se usa con la etiqueta de tabla. Se utiliza con diferentes atributos como atributos comunes, atributos globales y atributos de eventos.
Ahora veremos cómo estos atributos son útiles con el funcionamiento de la etiqueta de título:
1. alinear : este atributo se utiliza con algunos valores para alinear su título con la referencia de la tabla. Los valores incluidos en él son: izquierda, derecha, arriba y abajo.
2. Atributos globales: los atributos globales en HTML son compatibles con la etiqueta.
tecla de acceso: este elemento funciona como un atajo para activar o enfocar algún elemento específico.
dir: se utiliza para dar la dirección adecuada al texto en el contenido del elemento.
clase: los nombres de clase se utilizan para definir css para elementos específicos en HTML. Uno puede usar uno o dos nombres de clase para un elemento en particular y darles propiedades css.
contenteditable: este atributo se utiliza para definir el clima que se puede editar o no en un elemento de contenido dado.
arrastrable: Se utiliza para definir el clima dado que el elemento es arrastrable o no por el usuario.
dropzone: este atributo está relacionado con el atributo arrastrable. Se utiliza para copiar o mover elementos cuando se deja caer en una ubicación particular.
id: id to element se usa para definir un nombre de identificación único para el elemento en particular.
lang: este atributo en la etiqueta se usa para definir el idioma en el que se escribe el contenido. deletreando gramaticalmente o
Corrección ortográfica: este atributo indica que el elemento se verifica con su ortografía y gramaticalmente.
estilo: este es un atributo muy importante utilizado en la etiqueta de título para proporcionar una propiedad CSS en línea al elemento.
traducir: atributo más importante para dar detalles del elemento, como el clima, se puede traducir o no.
3. Atributos de evento: la etiqueta HTML también maneja varios atributos de evento, son los siguientes:
onafterprint: este evento se desencadena con éxito una vez que se imprime el documento.
onbeforeprint: este tipo de script se ejecuta antes de la impresión real del documento.
onbeforeunload: este script se ejecuta cuando nuestro documento se va a descargar.
onerror: este atributo de evento se ejecuta cuando se produce un error en el documento.
onload: este script se genera cuando se completa la carga real de la página.
onmessage: cada vez que se activa un mensaje, se produce este evento.
Ejemplos
A continuación se presentan algunos ejemplos:
Ejemplo 1
Aquí hay un ejemplo que muestra cómo se usará exactamente la etiqueta en HTML:
Código:
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
Salida:
Ejemplo # 2
Aquí hay otro ejemplo que muestra cómo se usará exactamente la etiqueta con el atributo de alineación con CSS en línea, alineando el título a la izquierda:
Código: 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
Salida:
Ejemplo # 3
Esto está utilizando una etiqueta de ejemplo para alinear el título a la derecha de la tabla con el código CSS interno:
Código:
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
Salida:
Conclusión: etiqueta de título en HTML
De todos los detalles anteriores con respecto a la etiqueta de subtítulos explica los términos, esto se utiliza para dar título a la tabla. el subtítulo está encerrado entre la etiqueta en el cuerpo de la tabla. Funciona en diferentes atributos como alinear atributos, atributos globales, así como algunos atributos de evento para activar el evento en la etiqueta del subtítulo.
Artículos recomendados
Esta ha sido una guía para la etiqueta de título en HTML. Aquí también discutimos su introducción, lista de etiquetas de subtítulos y funcionamiento. También puede consultar los siguientes artículos para obtener más información:
Etiquetas de tabla HTML
Versiones de HTML
Html5 Nuevos Elementos
Elementos de formulario HTML