copia e incolla
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xhtml 1.0</title>
<style type="text/css">
* {
margin : 0;
padding : 0;
font-size : 10px;
font-family : verdana, arial, sans-serif;
}
fieldset {
border : 1px #ccc solid;
height : auto;
overflow : hidden;
width : 543px;
display : block;
margin : 3px 0 0 3px;
background-color : #eee;
}
fieldset input {
border : 0;
width : 218px;
float : left;
display : inline;
background-color: #fff;
color : #999;
font-size : 1.3em;
padding : 1px;
height : 18px;
}
fieldset ins {
text-decoration : none;
width : 285px;
padding-left : 35px;
float : left;
display : inline;
height : 20px;
line-height : 20px;
font-size : 1.2em;
background-position : top left;
background-repeat : no-repeat;
}
/*** icone ***/
#fieldname ins { background-image : url(ico-name.gif); }
#fieldemail ins { background-image : url(ico-email.gif); }
/* altre icone qui */
</style>
</head>
<body>
<form ... >
<fieldset id="fieldname">
<input type="text" />
<ins>Nome (richiesto)</ins>
</fieldset>
<fieldset id="fieldemail">
<input type="text" />
<ins>Email</ins>
</fieldset>
...
</form>
</body>
</html>
e ritaglia le immagini come quella allegata (chiamala ico-name.gif e mettila nella stessa cartella del file html o non la vedrai)
Studia il codice e il posizionamento degli oggetti
Keywords: form helper helpers messaggi errore errori completamento hints tips suggerimenti