SESIÓN 11 - HTML CSS

<!DOCTYPE html>
 <html lang="es-ES">
 <head>
 <meta charset="UTF-8"> 
 <title>Tablas de nivel I</title>
 <link rel="stylesheet" href="Tablas1.css"> 
</head>
 <body>
 <h1>Jugando con Tablas Nivel I</h1>
 <table>
 <caption>Jugando con tablas de nivel I</caption> 
 <tr> <th>Posición</th>
 <th>Sistema Operativo</th>
 <th>Porcentaje</th>
 </tr> <tr>
 <td>1</td>
 <td>Android</td>
 <td>40%</td>
 </tr> <tr>
 <td>2</td>
 <td>Windows</td>
 <td>40%</td>
 </tr> <tr> 
 <td>3</td> 
 <td>Linux</td>
 <td>20%</td>
 </tr> 
 </table>
 </body>
 </html>

/*
 Creando Tablas de nivel I CSS 
*/ 
 h1{
 text-align: center; 
 table{
 margin-top: 50px;
 caption-side: bottom; 
 margin-left: auto; 
 margin-right: auto; 
 border-collapse: collapse;
 }
 th{
 background-color: black; 
 color: white; 
}
 caption{
 padding-top: 20px; 
 font-style: italic;
 }
 td,th{
 border: 2px solid black; 
 padding-left: 20px;
 padding-right: 20px;
 padding-top: 10px;
 padding-bottom: 10px; 
}

Comentarios

Entradas populares de este blog

LENGUAJE HTML 5 y CSS 3

SESIÓN 9 - HTML Y CSS

COMPARANDO APP EXTRA