DOCTYPE HTML
DOCTYPE HTML
DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
.w3docs {
margin-left: 70px;
font-weight: bold;
text-align: left;
font-size: 14px;
.buttons {
display: flex;
align-items: center;
width: 100%;
div input {
margin-right: 10px;
form {
margin: 0 auto;
width: 600px;
form input {
padding: 10px;
form select {
background-color: #ffffff;
padding: 5px;
}
form textarea {
padding: 10px;
margin-bottom: 5px;
form label {
display: block;
width: 100%;
margin-bottom: 5px;
</style>
</head>
<body>
<div>
<label for="Nom">Nom:</label>
</div>
<br />
<div>
<label for="adresse">Adresse:</label>
</div>
<br />
<div>
</div>
<br />
<div>
<label for="Mot de passe">Mot de passe:</label>
</div>
<br />
<div>
</div>
<br />
<div>
<label>Sélectionnez le Livre</label>
<option></option>
<option>HTML</option>
<option>CSS</option>
<option>PHP</option>
<option>JavaScript</option>
</select>
</div>
<br />
<div>
</div>
<div class="buttons">
</div>
</form>
<script>
function W3docs() {
var name = document.forms["RegForm"]["Nom"];
if (name.value == "") {
name.focus();
return false;
if (address.value == "") {
address.focus();
return false;
if (email.value == "") {
email.focus();
return false;
if (email.value.indexOf("@", 0) < 0) {
email.focus();
return false;
if (email.value.indexOf(".", 0) < 0) {
email.focus();
return false;
if (phone.value == "") {
phone.focus();
return false;
if (password.value == "") {
password.focus();
return false;
if (what.selectedIndex < 1) {
what.focus();
return false;
if (comment.value == "") {
alert("Écrivez un commentaire.");
comment.focus();
return false;
return true;
</script>
</body>
</html>