ذات مظهر إحترافي تكون فيها الحقول واضحة ولها زوايا مستديرة html أصنعلي كود أداة أتصل بنا
- User
ذات مظهر إحترافي تكون فيها الحقول واضحة ولها زوايا مستديرة html أصنعلي كود أداة أتصل بنا
- Assistant
بالطبع! فيما يلي مثال على كود HTML ينشئ أداة "اتصل بنا" بمظهر احترافي:
<!DOCTYPE html> <html> <head> <style> .container { width: 300px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; } .container input[type=text], .container textarea { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; box-sizing: border-box; border-radius: 5px; } .container input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; } .container input[type=submit]:hover { background-color: #45a049; } .container textarea { resize: vertical; } </style> </head> <body> <div class="container"> <h2>اتصل بنا</h2> <form action="/send-message" method="POST"> <label for="name">الاسم:</label> <input type="text" id="name" name="name" required> <label for="email">البريد الإلكتروني:</label> <input type="text" id="email" name="email" required> <label for="message">الرسالة:</label> <textarea id="message" name="message" required></textarea> <input type="submit" value="إرسال"> </form> </div> </body> </html> - User
أريد أن تكون الكلمات داخل الحقول
- Assistant
إذاً، إذا كنت ترغب في وضع كلمات داخل الحقول وتعتبرها عناصر توجيهية أو نص توضيحي للمستخدم، يمكنك استخدام خاصية "placeholder" في العنصر
<input>و<textarea>لتحقيق ذلك.فيما يلي المثال الجديد:
<!DOCTYPE html> <html> <head> <style> .container { width: 300px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; } .container input[type=text], .container textarea { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; box-sizing: border-box; border-radius: 5px; } .container input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; } .container input[type=submit]:hover { background-color: #45a049; } .container textarea { resize: vertical; } </style> </head> <body> <div class="container"> <h2>اتصل بنا</h2> <form action="/send-message" method="POST"> <label for="name">الاسم:</label> <input type="text" id="name" name="name" placeholder="أدخل اسمك" required> <label for="email">البريد الإلكتروني:</label> <input type="text" id="email" name="email" placeholder="أدخل بريدك الإلكتروني" required> <label for="message">الرسالة:</label> <textarea id="message" name="message" placeholder="اكتب رسالتك هنا" required></textarea> <input type="submit" value="إرسال"> </form> </div> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.