Utz: formulare in xhtml1.0 strict

Beitrag lesen

Hallo,

innerhalb von Form wird ein oder mehrere Block-Elemente verlangt, in denen Character Data und Inline-Elemente stehen können. Insofern geht das hier als fehlerfrei durch:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Test</title>
</head>
<body>
<form action="test.htm" method="post">
<p>Email:<input name="email_input" type="text"/></p>
<div>Name:<input name="name_input" type="text"/></div>
<p>Nachricht: <textarea name="nachricht_input" rows="5" cols="5"></textarea></p>
<div><input type="submit" id="submit" value="abschicken"/></div>
</form>
</body>
</html>

Grüße,

Utz

--
Mitglied im Ring Deutscher Mäkler