Validierung von HTML Code
Pluto
- html
0 Manuel B.0 Vinzenz Mai0 Pluto
Hallo Forum,
warum soll das input Element hier nicht erlaubt sein. Bei der Validierung kommt ein Fehler:
...
<form method="post" action="index.php">
<input type="hidden" name="mode" value="add" />
<table border="1" cellpadding="2" cellspacing="1" width="300">
...
Hi,
<form method="post" action="index.php">
<input type="hidden" name="mode" value="add" />
Ich vermute mal das hier:
<table border="1" cellpadding="2" cellspacing="1" width="300">
Da du dich allerdings weigerst, deinen Doctype anzugeben und die Fehlermeldung für dich behälst, ist es ein Ratespiel.
Hallo
warum soll das input Element hier nicht erlaubt sein. Bei der Validierung kommt ein Fehler:
ich vermute, Du verwendest eine Strict-Variante?
Wie Dir SELFHTML sagt, darf das <form>-Element nur bei Transitional Inline-Elemente enthalten. Wie Du der Liste der Inline-Elemente entnehmen kannst, ist input ein Inline-Element. Also darf es bei Strict in <form> enthalten sein, sondern in ein Block-Element gepackt werden.
<form method="post" action="index.php">
<input type="hidden" name="mode" value="add" />
<table border="1" cellpadding="2" cellspacing="1" width="300">
Freundliche Grüße
Vinzenz
Danke!
Jetzt weiß ich Bescheid! :)