العودة إلى الدرس

ملف العمل الأصلي

worked-solution/index.html

تحتفظ الشيفرة وصفحات الأمثلة القابلة للتشغيل بمعرّفاتها ونصوصها التجريبية الأصلية. يشرحها الدرس وإرشادات الملفات بلغتك.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Contact · Practice portfolio</title>
    <link rel="stylesheet" href="/style.css" />
  </head>
  <body>
    <main>
      <h1>Send me a message</h1>
      <p>
        Have a question about my work? Leave a message and an email address I can reply
        to.
      </p>
      <form
        name="contact"
        method="POST"
        data-netlify="true"
        netlify-honeypot="bot-field"
        action="/thanks/"
      >
        <input type="hidden" name="form-name" value="contact" />
        <p hidden>
          <label
            >Leave this empty <input name="bot-field" tabindex="-1" autocomplete="off"
          /></label>
        </p>
        <label for="name">Your name</label>
        <input id="name" name="name" autocomplete="name" required maxlength="80" />
        <label for="email">Your email</label>
        <input
          id="email"
          name="email"
          type="email"
          autocomplete="email"
          required
          maxlength="254"
        />
        <label for="topic">What is your message about?</label>
        <select id="topic" name="topic" required>
          <option value="">Choose a topic</option>
          <option value="project">A project</option>
          <option value="speaking">A speaking invitation</option>
          <option value="other">Something else</option>
        </select>
        <label for="message">Your message</label>
        <textarea
          id="message"
          name="message"
          rows="5"
          required
          maxlength="3000"
        ></textarea>
        <button type="submit">Send message</button>
      </form>
    </main>
  </body>
</html>