SlideShare una empresa de Scribd logo
1 de 9
Diseño de páginas web
Grupo: 4101
Paola Lozano
Las tablas se usan con profusión en las
páginas Web, muchas veces debido a que
son el único instrumento con el que se
cuenta, para asegurarse que las cosas estarán
en su sitio.
Para definir una tabla se usan las etiquetas:
• <TABLE> y </TABLE> son las etiquetas donde está
contenida la tabla.
• <TR> y </TR> son las etiquetas que indican el comienzo y fin
de una fila (<TH> y </TH> si es una fila de cabecera).
• <TD> y </TD> señalan una celda.
La tabla se va definiendo declarando una fila y a continuación las
celdas que contiene esa fila, luego otra fila y sus celadas, etc. No es
necesario que todas las filas contengan el mismo número de
celdas.
La tabla (2x2) más sencilla que podemos hacer es la siguiente:
Escribimos: Visualizamos:
<TABLE >
<TR>
<TD>1 </TD>
<TD> 2 </TD>
</TR>
<TR>
<TD>3 </TD>
<TD> 4</TD>
</TR>
</TABLE>
ATRIBUTOS DE LA ETIQUETA TABLE
• BORDER="4". Indica el tamaño del borde en píxeles, en este
caso 4. Si no se indica nada carece de borde.
• WIDTH="5" o WIDTH="50%". Es el ancho de la tabla,
puede especificarse en valor absoluto (5 píxeles) o como un
porcentaje (50% del ancho disponible).
• CELLSPACING="2". Es el espacio entre las celdas, por
defecto es 2.
• CELLPADDING="5". Es el espacio entre el contenido de las
celdas y el borde de las mismas, por defecto es 1.
• ALIGN=" left", "right", "center". Alinea la tabla a la izquierda
, derecha o en el centro.
Ejemplo:
Escribimos:
<TABLE BORDER="3" CELLSPACING="5" WIDTH="150">
<TR>
<TD>1 </TD>
<TD> 2 </TD>
</TR>
<TR> Visualizamos:
<TD>3 </TD>
<TD> 4</TD>
</TR>
</TABLE>
ATRIBUTOS DE LAS ETIQUETAS DE FILA Y CELDA
Las etiquetas que soportan las filas y las celdas son
• WIDTH="30". Ancho de toda la fila o celda. También se
puede dar en %.
• ALIGN=" left", "right", "center". Alinea el contenido a la
izquierda, derecha o centro.
• VALIGN="top" , "middle" o "bottom". Alinea el
contenido verticalmente arriba, en medio o abajo.
• BGCOLOR="#AACCEE". Pone un fondo del color
especificado a la celda o fila.
• COLSPAN=3. Especifica el número de columnas que
abarca la fila.
• ROWSPAN=2. Especifica el número de filas que abarca la
columna.
Ejemplo:
Escribimos:
<TABLE BORDER="3" CELLSPACING="5" WIDTH="200">
<TH COLSPAN=2 BGCOLOR="#6D8FFF> Este es el título</TH>
<TR align="center">
<TD>Esta es la celda de la 1ª fila y de la 1ª columna</TD>
<TD> Esta es de la 1ª fila y de la 2ª columna</TD>
</TR>
<TR BGCOLOR="#6D8FFF>
<TD>Esto está con un fondo azul</TD>
<TD align="right" valign="bottom">Y esto también</TD>
</TR>
</TABLE>
Visualizamos:
Como podemos ver, se pueden ir
modificando los comandos básicos para
obtener la tabla que deseemos.

Más contenido relacionado

La actualidad más candente (17)

Inf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyvaInf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyva
 
12tablas
12tablas12tablas
12tablas
 
Olivarko
OlivarkoOlivarko
Olivarko
 
Tablas HTML
Tablas HTMLTablas HTML
Tablas HTML
 
HTML
HTMLHTML
HTML
 
Web3
Web3Web3
Web3
 
curso de html
curso de htmlcurso de html
curso de html
 
HTML COMO CREAR TABLAS Y TIPOS DE LISTAS.
HTML COMO CREAR TABLAS Y TIPOS DE LISTAS.HTML COMO CREAR TABLAS Y TIPOS DE LISTAS.
HTML COMO CREAR TABLAS Y TIPOS DE LISTAS.
 
Taller5
Taller5Taller5
Taller5
 
Trabajo 5
Trabajo 5Trabajo 5
Trabajo 5
 
Pagina web 5
Pagina web 5Pagina web 5
Pagina web 5
 
Codigos html
Codigos htmlCodigos html
Codigos html
 
DBER N° 2 blog blogger blogspot
DBER N° 2 blog blogger blogspotDBER N° 2 blog blogger blogspot
DBER N° 2 blog blogger blogspot
 
tablas
tablastablas
tablas
 
Tablas
TablasTablas
Tablas
 
Tablas
TablasTablas
Tablas
 
Tablas
TablasTablas
Tablas
 

Destacado

SERVICES WE PROVIDE
SERVICES WE PROVIDESERVICES WE PROVIDE
SERVICES WE PROVIDEAnjali Jain
 
WSO2 Product Release Webinar: WSO2 App Manager 1.1
WSO2 Product Release Webinar: WSO2 App Manager 1.1WSO2 Product Release Webinar: WSO2 App Manager 1.1
WSO2 Product Release Webinar: WSO2 App Manager 1.1WSO2
 
CV Europass lb romana 2016(Samoila Daniel)
CV Europass lb romana 2016(Samoila Daniel)CV Europass lb romana 2016(Samoila Daniel)
CV Europass lb romana 2016(Samoila Daniel)DANIEL SAMOILĂ
 
inTouch Body of work
inTouch Body of workinTouch Body of work
inTouch Body of workamps1000
 
inTouch Predictive Salary Analytics
inTouch Predictive Salary AnalyticsinTouch Predictive Salary Analytics
inTouch Predictive Salary Analyticsamps1000
 
Neeraj_Jayara_Resume.PDF
Neeraj_Jayara_Resume.PDFNeeraj_Jayara_Resume.PDF
Neeraj_Jayara_Resume.PDFNeeraj Jayara
 
Honours (Undergraduate) Research Paper
Honours (Undergraduate) Research PaperHonours (Undergraduate) Research Paper
Honours (Undergraduate) Research PaperSAMUEL NGEI
 
How to shoot and create an aerial spherical pano with a Parrot Bebop drone
How to shoot and create an aerial spherical pano with a Parrot Bebop droneHow to shoot and create an aerial spherical pano with a Parrot Bebop drone
How to shoot and create an aerial spherical pano with a Parrot Bebop droneImmersium
 
8th Grade Chapter 6 Lesson 1
8th Grade Chapter 6 Lesson 18th Grade Chapter 6 Lesson 1
8th Grade Chapter 6 Lesson 1MRS.KDUNCAN
 
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb engleza
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb englezaEUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb engleza
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb englezaDANIEL SAMOILĂ
 
WSO2Con ASIA 2016: Enterprise Platform for Digital Transformation
WSO2Con ASIA 2016: Enterprise Platform for Digital TransformationWSO2Con ASIA 2016: Enterprise Platform for Digital Transformation
WSO2Con ASIA 2016: Enterprise Platform for Digital TransformationWSO2
 
Expertise cabin seats_h_lefi_01
Expertise cabin seats_h_lefi_01Expertise cabin seats_h_lefi_01
Expertise cabin seats_h_lefi_01Hatem Lefi
 
Berrycool - Coolstone
Berrycool - CoolstoneBerrycool - Coolstone
Berrycool - Coolstoneberrycool
 
Types of Ground Handling Operations
Types of Ground Handling OperationsTypes of Ground Handling Operations
Types of Ground Handling OperationsTransworld Aviation
 

Destacado (20)

SERVICES WE PROVIDE
SERVICES WE PROVIDESERVICES WE PROVIDE
SERVICES WE PROVIDE
 
Projekt ustawy stoczniowej
Projekt ustawy stoczniowejProjekt ustawy stoczniowej
Projekt ustawy stoczniowej
 
WSO2 Product Release Webinar: WSO2 App Manager 1.1
WSO2 Product Release Webinar: WSO2 App Manager 1.1WSO2 Product Release Webinar: WSO2 App Manager 1.1
WSO2 Product Release Webinar: WSO2 App Manager 1.1
 
CV Europass lb romana 2016(Samoila Daniel)
CV Europass lb romana 2016(Samoila Daniel)CV Europass lb romana 2016(Samoila Daniel)
CV Europass lb romana 2016(Samoila Daniel)
 
inTouch Body of work
inTouch Body of workinTouch Body of work
inTouch Body of work
 
inTouch Predictive Salary Analytics
inTouch Predictive Salary AnalyticsinTouch Predictive Salary Analytics
inTouch Predictive Salary Analytics
 
Neeraj_Jayara_Resume.PDF
Neeraj_Jayara_Resume.PDFNeeraj_Jayara_Resume.PDF
Neeraj_Jayara_Resume.PDF
 
Honours (Undergraduate) Research Paper
Honours (Undergraduate) Research PaperHonours (Undergraduate) Research Paper
Honours (Undergraduate) Research Paper
 
How to shoot and create an aerial spherical pano with a Parrot Bebop drone
How to shoot and create an aerial spherical pano with a Parrot Bebop droneHow to shoot and create an aerial spherical pano with a Parrot Bebop drone
How to shoot and create an aerial spherical pano with a Parrot Bebop drone
 
8th Grade Chapter 6 Lesson 1
8th Grade Chapter 6 Lesson 18th Grade Chapter 6 Lesson 1
8th Grade Chapter 6 Lesson 1
 
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb engleza
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb englezaEUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb engleza
EUROPASS_2016_CV_Daniel_Samoila(01.10.2016)-lb engleza
 
WSO2Con ASIA 2016: Enterprise Platform for Digital Transformation
WSO2Con ASIA 2016: Enterprise Platform for Digital TransformationWSO2Con ASIA 2016: Enterprise Platform for Digital Transformation
WSO2Con ASIA 2016: Enterprise Platform for Digital Transformation
 
Lecture 4b
Lecture 4bLecture 4b
Lecture 4b
 
Case 1
Case 1Case 1
Case 1
 
Expertise cabin seats_h_lefi_01
Expertise cabin seats_h_lefi_01Expertise cabin seats_h_lefi_01
Expertise cabin seats_h_lefi_01
 
CCTNS
CCTNS CCTNS
CCTNS
 
Paper Logistics - Passenger Handling Process and Value Chain Improvement - Jo...
Paper Logistics - Passenger Handling Process and Value Chain Improvement - Jo...Paper Logistics - Passenger Handling Process and Value Chain Improvement - Jo...
Paper Logistics - Passenger Handling Process and Value Chain Improvement - Jo...
 
Berrycool - Coolstone
Berrycool - CoolstoneBerrycool - Coolstone
Berrycool - Coolstone
 
Linea de tiempo , comunicacion
Linea de tiempo , comunicacionLinea de tiempo , comunicacion
Linea de tiempo , comunicacion
 
Types of Ground Handling Operations
Types of Ground Handling OperationsTypes of Ground Handling Operations
Types of Ground Handling Operations
 

Similar a Creación de tablas en HTML

Guia 5 de html tablas
Guia 5 de html   tablasGuia 5 de html   tablas
Guia 5 de html tablaslisvancelis
 
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdf
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdfsites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdf
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdffgu
 
Tablas (etiquetas en HTML)
Tablas (etiquetas en HTML)Tablas (etiquetas en HTML)
Tablas (etiquetas en HTML)jazmin Vazquez
 
Inf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyvaInf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyvafridaleyvateran
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerra Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerra Juan Gutierrez
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerraMateo Remolina
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerraMateo Remolina
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerraMateo Torres
 
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...santi302930
 
Pagina web 5.
Pagina web 5.Pagina web 5.
Pagina web 5.juanesvs
 
Colegio nicolas esguerraa
Colegio nicolas esguerraaColegio nicolas esguerraa
Colegio nicolas esguerraalocoronald2
 
Inf2 exc15 p1a_adilene
Inf2 exc15 p1a_adileneInf2 exc15 p1a_adilene
Inf2 exc15 p1a_adileneadilene11
 

Similar a Creación de tablas en HTML (20)

Guia 5 de html tablas
Guia 5 de html   tablasGuia 5 de html   tablas
Guia 5 de html tablas
 
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdf
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdfsites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdf
sites_google_com_site_karlosnun_curso_html_tablas_html_pli_1.pdf
 
Html tablas
Html tablasHtml tablas
Html tablas
 
Tablas (etiquetas en HTML)
Tablas (etiquetas en HTML)Tablas (etiquetas en HTML)
Tablas (etiquetas en HTML)
 
Portada
PortadaPortada
Portada
 
Inf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyvaInf2 exc15 p1_a_unidad 3_html_fridaleyva
Inf2 exc15 p1_a_unidad 3_html_fridaleyva
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerra Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerra
 
Tablas
TablasTablas
Tablas
 
Trabajo 6
Trabajo 6Trabajo 6
Trabajo 6
 
Trabajo 3
Trabajo 3Trabajo 3
Trabajo 3
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerra
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerra
 
Colegio nacional nicolas esguerra
Colegio nacional nicolas esguerraColegio nacional nicolas esguerra
Colegio nacional nicolas esguerra
 
Manual 2 HTML
Manual 2 HTMLManual 2 HTML
Manual 2 HTML
 
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...
Colegionacionalnicolsesguerra 150917155628-lva1-app6892-150924155136-lva1-app...
 
Pagina web 5.
Pagina web 5.Pagina web 5.
Pagina web 5.
 
Tablas
TablasTablas
Tablas
 
Colegio nicolas esguerraa
Colegio nicolas esguerraaColegio nicolas esguerraa
Colegio nicolas esguerraa
 
Colegio nicolas esguerra
Colegio nicolas esguerraColegio nicolas esguerra
Colegio nicolas esguerra
 
Inf2 exc15 p1a_adilene
Inf2 exc15 p1a_adileneInf2 exc15 p1a_adilene
Inf2 exc15 p1a_adilene
 

Último

Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Lourdes Feria
 
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxEXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxPryhaSalam
 
GLOSAS Y PALABRAS ACTO 2 DE ABRIL 2024.docx
GLOSAS  Y PALABRAS ACTO 2 DE ABRIL 2024.docxGLOSAS  Y PALABRAS ACTO 2 DE ABRIL 2024.docx
GLOSAS Y PALABRAS ACTO 2 DE ABRIL 2024.docxAleParedes11
 
La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.amayarogel
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...JAVIER SOLIS NOYOLA
 
Heinsohn Privacidad y Ciberseguridad para el sector educativo
Heinsohn Privacidad y Ciberseguridad para el sector educativoHeinsohn Privacidad y Ciberseguridad para el sector educativo
Heinsohn Privacidad y Ciberseguridad para el sector educativoFundación YOD YOD
 
Planificacion Anual 4to Grado Educacion Primaria 2024 Ccesa007.pdf
Planificacion Anual 4to Grado Educacion Primaria   2024   Ccesa007.pdfPlanificacion Anual 4to Grado Educacion Primaria   2024   Ccesa007.pdf
Planificacion Anual 4to Grado Educacion Primaria 2024 Ccesa007.pdfDemetrio Ccesa Rayme
 
programa dia de las madres 10 de mayo para evento
programa dia de las madres 10 de mayo  para eventoprograma dia de las madres 10 de mayo  para evento
programa dia de las madres 10 de mayo para eventoDiegoMtsS
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónLourdes Feria
 
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxTIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxlclcarmen
 
Lecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadLecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadAlejandrino Halire Ccahuana
 
EXPECTATIVAS vs PERSPECTIVA en la vida.
EXPECTATIVAS vs PERSPECTIVA  en la vida.EXPECTATIVAS vs PERSPECTIVA  en la vida.
EXPECTATIVAS vs PERSPECTIVA en la vida.DaluiMonasterio
 
cortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuacortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuaDANNYISAACCARVAJALGA
 
Manual - ABAS II completo 263 hojas .pdf
Manual - ABAS II completo 263 hojas .pdfManual - ABAS II completo 263 hojas .pdf
Manual - ABAS II completo 263 hojas .pdfMaryRotonda1
 
2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdfBaker Publishing Company
 
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOS
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOSTEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOS
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOSjlorentemartos
 
Registro Auxiliar - Primaria 2024 (1).pptx
Registro Auxiliar - Primaria  2024 (1).pptxRegistro Auxiliar - Primaria  2024 (1).pptx
Registro Auxiliar - Primaria 2024 (1).pptxFelicitasAsuncionDia
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIACarlos Campaña Montenegro
 

Último (20)

Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...
 
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptxEXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
EXPANSIÓN ECONÓMICA DE OCCIDENTE LEÓN.pptx
 
GLOSAS Y PALABRAS ACTO 2 DE ABRIL 2024.docx
GLOSAS  Y PALABRAS ACTO 2 DE ABRIL 2024.docxGLOSAS  Y PALABRAS ACTO 2 DE ABRIL 2024.docx
GLOSAS Y PALABRAS ACTO 2 DE ABRIL 2024.docx
 
La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.La triple Naturaleza del Hombre estudio.
La triple Naturaleza del Hombre estudio.
 
Repaso Pruebas CRECE PR 2024. Ciencia General
Repaso Pruebas CRECE PR 2024. Ciencia GeneralRepaso Pruebas CRECE PR 2024. Ciencia General
Repaso Pruebas CRECE PR 2024. Ciencia General
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
 
Heinsohn Privacidad y Ciberseguridad para el sector educativo
Heinsohn Privacidad y Ciberseguridad para el sector educativoHeinsohn Privacidad y Ciberseguridad para el sector educativo
Heinsohn Privacidad y Ciberseguridad para el sector educativo
 
Planificacion Anual 4to Grado Educacion Primaria 2024 Ccesa007.pdf
Planificacion Anual 4to Grado Educacion Primaria   2024   Ccesa007.pdfPlanificacion Anual 4to Grado Educacion Primaria   2024   Ccesa007.pdf
Planificacion Anual 4to Grado Educacion Primaria 2024 Ccesa007.pdf
 
programa dia de las madres 10 de mayo para evento
programa dia de las madres 10 de mayo  para eventoprograma dia de las madres 10 de mayo  para evento
programa dia de las madres 10 de mayo para evento
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcción
 
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxTIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
 
Lecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadLecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdad
 
EXPECTATIVAS vs PERSPECTIVA en la vida.
EXPECTATIVAS vs PERSPECTIVA  en la vida.EXPECTATIVAS vs PERSPECTIVA  en la vida.
EXPECTATIVAS vs PERSPECTIVA en la vida.
 
Sesión de clase: Defendamos la verdad.pdf
Sesión de clase: Defendamos la verdad.pdfSesión de clase: Defendamos la verdad.pdf
Sesión de clase: Defendamos la verdad.pdf
 
cortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuacortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahua
 
Manual - ABAS II completo 263 hojas .pdf
Manual - ABAS II completo 263 hojas .pdfManual - ABAS II completo 263 hojas .pdf
Manual - ABAS II completo 263 hojas .pdf
 
2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf
 
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOS
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOSTEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOS
TEMA 13 ESPAÑA EN DEMOCRACIA:DISTINTOS GOBIERNOS
 
Registro Auxiliar - Primaria 2024 (1).pptx
Registro Auxiliar - Primaria  2024 (1).pptxRegistro Auxiliar - Primaria  2024 (1).pptx
Registro Auxiliar - Primaria 2024 (1).pptx
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
 

Creación de tablas en HTML

  • 1. Diseño de páginas web Grupo: 4101 Paola Lozano
  • 2. Las tablas se usan con profusión en las páginas Web, muchas veces debido a que son el único instrumento con el que se cuenta, para asegurarse que las cosas estarán en su sitio.
  • 3. Para definir una tabla se usan las etiquetas: • <TABLE> y </TABLE> son las etiquetas donde está contenida la tabla. • <TR> y </TR> son las etiquetas que indican el comienzo y fin de una fila (<TH> y </TH> si es una fila de cabecera). • <TD> y </TD> señalan una celda. La tabla se va definiendo declarando una fila y a continuación las celdas que contiene esa fila, luego otra fila y sus celadas, etc. No es necesario que todas las filas contengan el mismo número de celdas.
  • 4. La tabla (2x2) más sencilla que podemos hacer es la siguiente: Escribimos: Visualizamos: <TABLE > <TR> <TD>1 </TD> <TD> 2 </TD> </TR> <TR> <TD>3 </TD> <TD> 4</TD> </TR> </TABLE>
  • 5. ATRIBUTOS DE LA ETIQUETA TABLE • BORDER="4". Indica el tamaño del borde en píxeles, en este caso 4. Si no se indica nada carece de borde. • WIDTH="5" o WIDTH="50%". Es el ancho de la tabla, puede especificarse en valor absoluto (5 píxeles) o como un porcentaje (50% del ancho disponible). • CELLSPACING="2". Es el espacio entre las celdas, por defecto es 2. • CELLPADDING="5". Es el espacio entre el contenido de las celdas y el borde de las mismas, por defecto es 1. • ALIGN=" left", "right", "center". Alinea la tabla a la izquierda , derecha o en el centro.
  • 6. Ejemplo: Escribimos: <TABLE BORDER="3" CELLSPACING="5" WIDTH="150"> <TR> <TD>1 </TD> <TD> 2 </TD> </TR> <TR> Visualizamos: <TD>3 </TD> <TD> 4</TD> </TR> </TABLE>
  • 7. ATRIBUTOS DE LAS ETIQUETAS DE FILA Y CELDA Las etiquetas que soportan las filas y las celdas son • WIDTH="30". Ancho de toda la fila o celda. También se puede dar en %. • ALIGN=" left", "right", "center". Alinea el contenido a la izquierda, derecha o centro. • VALIGN="top" , "middle" o "bottom". Alinea el contenido verticalmente arriba, en medio o abajo. • BGCOLOR="#AACCEE". Pone un fondo del color especificado a la celda o fila. • COLSPAN=3. Especifica el número de columnas que abarca la fila. • ROWSPAN=2. Especifica el número de filas que abarca la columna.
  • 8. Ejemplo: Escribimos: <TABLE BORDER="3" CELLSPACING="5" WIDTH="200"> <TH COLSPAN=2 BGCOLOR="#6D8FFF> Este es el título</TH> <TR align="center"> <TD>Esta es la celda de la 1ª fila y de la 1ª columna</TD> <TD> Esta es de la 1ª fila y de la 2ª columna</TD> </TR> <TR BGCOLOR="#6D8FFF> <TD>Esto está con un fondo azul</TD> <TD align="right" valign="bottom">Y esto también</TD> </TR> </TABLE> Visualizamos:
  • 9. Como podemos ver, se pueden ir modificando los comandos básicos para obtener la tabla que deseemos.