Там нет атрибута "тип" - PullRequest
0 голосов
/ 24 октября 2018

Я пытался проверить документ xhtml на w3.org, но есть ошибка, которую я не могу исправить.Любая помощь аппетитна.

Код:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Suggerir recepta</title>
</head>
<body style="background-image: url('asd.jpg');">
    <h1 id="suggerencies">Suggereix la teva recepta!</h1>
    <form action="http://172.17.100.41/formulari/daw/enviar" method="post" enctype="multipart/form-data">
    <div><input type="hidden" name="id" value="x8975305s"/></div>
    <div><input type="hidden" name="nomalumne" value="Federico Giovanini"/></div>

    <table cellspacing="0" border="1" width="500" cellpadding="5" style="background-color:white;">
    <tr>
        <td><label for="titol">Títol de la recepta:</label></td>
        <td><div><input type="text" name="titol" id="titol" maxlength="200"/></div></td>
    </tr>
    <tr>
        <td colspan="2"><label for="ingredients">Ingredients de la recepta:</label></td>
    </tr>
    <tr>
        <td colspan="2"><textarea type="text" name="ingredients" id="ingredients" rows="10" cols="63"></textarea></td>
    </tr>
    <tr>
        <td><label for="persones">nº de persones</label></td>
        <td><select name="numeropersones" id="persones">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4" selected="selected">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
        <option value="10">10</option>
        <option value="15">15</option>
        <option value="20">20</option>
        <option value="25">25</option>
        <option value="50">50</option></select></td>
    </tr>
    <tr>
        <td colspan="2"><label for="preparacio">Preparació i elaboració:</label></td>
    </tr>
    <tr>
        <td colspan="2"><textarea type="text" name="preparacio" id="preparacio" rows="10" cols="63"></textarea></td>
    </tr>
    <tr>
        <td colspan="2"><label for="recomanacio">Recomanació de presentació:</label></td>
    </tr>
    <tr>
        <td colspan="2"><textarea type="text" name="recomanacio" id="recomanacio" rows="10" cols="63"></textarea></td>
    </tr>
    <tr>
        <td>Foto de la recepta:</td>
        <td><input type="file" name="foto"/></td>
    </tr>
    </table>
<p><label for="accepto">Accepto les condicions</label>
<input type="checkbox" name="accepto" id="accepto"/></p>
<p><input type="submit" value="Enviar suggerencia"/></p>
</form>
<div><a href="Receptes.html#index">Torna a l'índex</a></div>
</body>

И здесь показывается ошибка:

    <tr>
        <td colspan="2"><textarea type="text" name="ingredients" id="ingredients" rows="10" cols="63"></textarea></td>
    </tr>

Там написано, что

нет атрибута "type"

Что я нахожу странным, так это то, что есть еще 2 строки, которые действительно похожи, но не отображают сообщение об ошибке:

    <tr>
        <td colspan="2"><textarea type="text" name="preparacio" id="preparacio" rows="10" cols="63"></textarea></td>
    </tr>

и

    <tr>
        <td colspan="2"><textarea type="text" name="recomanacio" id="recomanacio" rows="10" cols="63"></textarea></td>
    </tr>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...