gpt-4.1-2025-04-14· OpenAI
LMArena Human Preference 140K
fais un formulaire en html et intègres directement le css a l'intérieur
- User
fais un formulaire en html et intègres directement le css a l'intérieur
- Assistant
Bien sûr ! Voici un exemple de formulaire avec le CSS directement intégré dans la balise
<style>de la page HTML :<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <title>Formulaire d'inscription</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .form-container { background: #fff; padding: 25px 30px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); width: 320px; } h2 { text-align: center; margin-bottom: 20px; color: #333; } .form-group { margin-bottom: 15px; } label { display: block; margin-bottom: 6px; color: #555; } input[type="text"], input[type="email"], input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 15px; } button { width: 100%; padding: 10px; background-color: #28a745; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background 0.2s; } button:hover { background-color: #218838; } </style> </head> <body> <div class="form-container"> <h2>Inscription</h2> <form action="#" method="post"> <div class="form-group"> <label for="name">Nom :</label> <input type="text" id="name" name="name" required> </div> <div class="form-group"> <label for="email">Email :</label> <input type="email" id="email" name="email" required> </div> <div class="form-group"> <label for="password">Mot de passe :</label> <input type="password" id="password" name="password" required> </div> <div class="form-group"> <button type="submit">S'inscrire</button> </div> </form> </div> </body> </html>Tu peux copier-coller ce code dans un fichier
.htmlet l’ouvrir dans ton navigateur pour voir le résultat !
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.