Bases de données, ENS Cachan & Ulm
Aide-mémoire XHTML
Pierre Senellart ([email protected]) 15 février 2008
– <!−− Commentaire−−>
Prologue
– <!DOCTYPE htmlPUBLIC "−//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" xml:lang="fr"lang="fr">
. . .
</html>
En-tête
– <head> . . . </head>
– <meta http−equiv="Content−Type"content="text/html; charset=utf−8" />
– <title> . . . </title>
– <link rel="stylesheet"href="style.css" type="text/css" />
Corps
– <body> . . . </body>
– <p> . . . </p>
– <h1> . . . </h1>, <h6> . . . </h6>
– <div> . . . </div>
– <br/>
– <hr/>
– <em> . . . </em>, <strong> . . . </strong>
– <span> . . . </span>
Listes
– <ol><li> . . . </li> . . . </ol>
– <ul><li> . . . </li> . . . </ul>
– <dl><dt> . . . </dt><dd> . . . </dd> . . . </dl>
Tables
– <table> . . . </table>
– <caption> . . . </caption>
– <tr> . . . </tr>
– <th> . . . </th>
– <td> . . . </td>
Images
– <img src="image.png" alt="texte alternatif " />
1
Liens et ancres
– <a href="http://www.cnrs.fr/"> . . . </a>
– <balise id="toto"> . . . </balise>
– <a href="#toto"> . . . </a>
Attributs communs à toutes les balises – style
– class
– id
Formulaires
– <form method="post"action="script.php"enctype="multipart/form−data">
. . .
</form>
(enctypepeut être omis, il vaut alors application/x−www−form−urlencoded).
– <fieldset> . . . </fieldset>
– <legend> . . . </legend>
– <label for="id_champ"> . . . </label>
– <input type="text"name="nom"value="défaut"maxlength="42" />
– <input type="password"name="nom"value="défaut"maxlength="42" />
– <input type="checkbox"name="nom[]"value="valeur"checked="checked" />
– <input type="radio"name="nom"value="valeur"checked="checked" />
– <input type="file"name="nom" />
– <input type="hidden"name="nom"value="valeur" />
– <input type="reset"value="étiquette" />
– <input type="submit"value="étiquette" />
– <textarea name="nom" cols="80"rows="5"> . . . </textarea>
– <select name="nom">
<option value="valeur1"> . . . </option>
<option value="valeur2"selected="selected"> . . . </option>
</select>
– <select name="nom[]" multiple="multiple"size="5">
<option value="valeur1"> . . . </option>
<option value="valeur2"selected="selected"> . . . </option>
</select>
2