You are currently viewing Classwork wrong email address

Classwork wrong email address

Basic email address format requirement.

  1. Convert all upper case to lowercase.
  2. Strip the spaces.
  3. Remove all spaces.
  4. The length must be more than 6 characters.

❌ Examples of Incorrect Email Addresses

Wrong Email AddressWhat’s Wrong With It
john.doe@Missing domain name after @
@example.comMissing local part before @
john.doe@exampleMissing top-level domain (e.g., .com, .org)
john..doe@example.comDouble dots in the local part are not allowed
john.doe@.comDomain name cannot start with a dot
john.doe@com.Domain name cannot end with a dot
john.doe@exam!ple.comSpecial characters like ! are not allowed in domain
john doe@example.comSpaces are not allowed in email addresses
john.doe@example..comDouble dots in domain part are invalid
john.doe@.example.comDomain cannot start with a dot

Advanced detail requirements

✅ 1. Local Part (before the @)

  • Can include:
    • Letters (A–Z, a–z)
    • Digits (0–9)
    • Special characters: ! # $ % & ' * + - / = ? ^ _ { | } ~`
    • Dots (.), but not at the beginning or end, and not consecutively
  • Cannot include:
    • Spaces
    • Special characters like (),:;<>@[\]
  • Max length: 64 characters

Examples (valid):

  • john.doe
  • user_name123
  • first.last+tag

✅ 2. @ Symbol

  • Must be present exactly once
  • Separates the local part from the domain

✅ 3. Domain Part (after the @)

  • Must include:
    • A domain name (e.g., example)
    • A top-level domain (TLD) like .com, .org, .net
  • Can include:
    • Letters, digits, hyphens (-)
  • Cannot:
    • Start or end with a hyphen
    • Have consecutive dots
  • Max length: 255 characters

Examples (valid):

  • example.com
  • teachonetofish.net

Leave a Reply