Hvad er der galt med denne HTML kode?

Tags:    html codecademy

Hej jeg er i gang med codecademys HTML(og CSS) kurser men jeg har fået et problem som jeg ikke selv kan løse

Problem:
Fold kodeboks ind/udKode 


Koden:
Fold kodeboks ind/udHTML kode 


Opgaven:
Fold kodeboks ind/udKode 




Indlæg senest redigeret d. 10.08.2012 08:45 af Bruger #17298
2 svar postet i denne tråd vises herunder
1 indlæg har modtaget i alt 12 karma
Sorter efter stemmer Sorter efter dato
Du har ikke <thead> og <tbody> tags.

Prøv med
<html>
<head>
<title>Doubling the Chocolate Chip Cookies Recipe</title>
</head>
<body>
<table border="2">
<thead>
<tr><th colspan="3">Doubling Chocolate Chip Cookies</th></tr>
</thead>
<tbody>
<tr><th>Ingredient</th><th>Single Batch</th><th>Double atch</th></tr>
<tr><td>butter</td><td>1 cup</td><td>2 cups</td></tr>
<tr><td>eggs</td><td>2</td><td>4</td></tr>
<tr><td>hot water</td><td>2 teaspoons</td><td>4 teaspoons</td></tr>
<tr><td>white sugar</td><td>1 cup</td><td>2 cups</td></tr>
</tbody>
</table>
</body>
</html>


The <thead> tag is used to group header content in an HTML table.

The <thead> element is used in conjunction with the <tbody> and <tfoot> elements to specify each part of a table (header, body, footer).

Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.

The <thead> tag must be used in the following context: As a child of a <table> element, after any <caption>, and <colgroup> elements, and before any <tbody>, <tfoot>, and <tr> elements.



Indlæg senest redigeret d. 10.08.2012 09:07 af Bruger #3173
Tak :)



t