XCS
XCS

Reputation: 28137

Data after <textarea> is not shown

If you go here: http://xcs.dyndns.info/piataterenuri/vinde.php you can see that the footer appears.

But if you go http://xcs.dyndns.info/piataterenuri/vinde2.php here, you can see that nothing is displayed after the textarea.

The only differnce betweeen that two is that the second one has:

<tr>
<td class="optiune">Info:</td>
<td> <textarea cols="30" rows="5" class="field"/></td>
</tr>

Why's that happening?

Upvotes: 1

Views: 345

Answers (3)

Stefanvds
Stefanvds

Reputation: 5916

you cant close textarea like this />

should be

<textarea cols="30" rows="5" class="field"></textarea>

it's not self closing like <input />

Upvotes: 1

corroded
corroded

Reputation: 21564

a textarea needs a closing tag

<textarea cols="30" rows="50" class="field">
  PEW PEW PEW
</textarea>

Upvotes: 1

rfunduk
rfunduk

Reputation: 30442

textarea tags are not self closing (in HTML). So your code should be:

<tr>
  <td class="optiune">Info:</td>
  <td>
    <textarea cols="30" rows="5" class="field"></textarea>
  </td>
</tr>

Upvotes: 5

Related Questions