Question sur le html
Samz
-
Samz -
Samz -
Bonjour je suis en stage et je doit faire du développement, du html, personnellement je n'y ai jamais touché et j'ai un souci avec le <div> je voudrais faire un tableau donc avec des cellules à l'intérieur et le mettre sur fond noir et l'écriture en blanche mais je n'y arrive pas je voudrais comprendre pourquoi cela ne s'applique pas. Voici comment j'ai fait :
<html>
<head>
<title>test tableau</title>
</head>
<body>
<h1>test tableau</h1>
<div style='background:black;color:#ffffff'>
<table >
<tr>
<td >Cellule 1</td>
<td>Cellule 2</td>
<td>Cellule 3</td>
<td>Cellule 4</td>
</tr>
<tr>
<td>Cellule 5</td>
<td>Cellule 6</td>
<td>Cellule 7</td>
<td>Cellule 8</td>
</tr>
<tr>
<td>Cellule 9</td>
<td>Cellule 10</td>
<td>Cellule 11</td>
<td>Cellule 12</td>
</tr>
</table>
</div>
</body>
</html>
Merci de m'expliquer si vous savez pourquoi cela m'aiderai beaucoup.
Cordialement.
<html>
<head>
<title>test tableau</title>
</head>
<body>
<h1>test tableau</h1>
<div style='background:black;color:#ffffff'>
<table >
<tr>
<td >Cellule 1</td>
<td>Cellule 2</td>
<td>Cellule 3</td>
<td>Cellule 4</td>
</tr>
<tr>
<td>Cellule 5</td>
<td>Cellule 6</td>
<td>Cellule 7</td>
<td>Cellule 8</td>
</tr>
<tr>
<td>Cellule 9</td>
<td>Cellule 10</td>
<td>Cellule 11</td>
<td>Cellule 12</td>
</tr>
</table>
</div>
</body>
</html>
Merci de m'expliquer si vous savez pourquoi cela m'aiderai beaucoup.
Cordialement.
A voir également:
- Question sur le html
- Editeur html - Télécharger - HTML
- Espace html ✓ - Forum HTML
- [**] Balise pour un espace vide en hml. Merci ✓ - Forum Webmastering
- /Var/www/html/index.html ✓ - Forum Linux / Unix
- Html download - Télécharger - HTML
3 réponses
Cela ne s'applique toujours pas je ne comprend pas du tout je suis bloqué quelqu'un pourrait m'expliquer si il a la réponse merci d'avance.
A INSERER ENTRE LES BALISES
CODE HTML :
Autre chose, attention à vos balises html qui ne sont pas fermées correctement ex : <table ><td > un espace est en trop
<head></head>
<style> #conteneur table, #conteneur table td { background-color:#000; border:none; color:#FFF; } </style>
CODE HTML :
<body> <h1>test tableau</h1> <div id="conteneur"> <table > <tr> <td >Cellule 1</td> <td>Cellule 2</td> <td>Cellule 3</td> <td>Cellule 4</td> </tr> <tr> <td>Cellule 5</td> <td>Cellule 6</td> <td>Cellule 7</td> <td>Cellule 8</td> </tr> <tr> <td>Cellule 9</td> <td>Cellule 10</td> <td>Cellule 11</td> <td>Cellule 12</td> </tr> </table> </div> </body>
Autre chose, attention à vos balises html qui ne sont pas fermées correctement ex : <table ><td > un espace est en trop