SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Outsource Web Design featuredhost's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question how to use @ in a page ?

    hi
    I have tried using the W3 validator service to check my page and as of yet , most of the pages are HTML 4.01 Transitional . But in some of the pages i have a comment form where i need to keep this code
    Code:
    <INPUT type=hidden value=design@featuredhost.com name=recipient>
    and i am getting an error . What is the work around for this , as i will need to include the @ .
    Any advice ?

  2. #2
    Outsource Web Design featuredhost's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the error i get , FYI .
    an attribute value must be a literal unless it contains only name characters.


    You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value."

    ie
    Code:
    <INPUT type="hidden" value="design@featuredhost.com" name="recipient">

  4. #4
    SitePoint Addict
    Join Date
    Apr 2004
    Location
    Belgian in Mexico
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It should help to quote all the attributes values, as said in the error message.

    Regards,

    MichaŽl
    MichaŽl Niessen
    http://assemblysys.com
    (Countries/states/cities with latitude & longitude,
    weathercodes & topical databases)

  5. #5
    Outsource Web Design featuredhost's Avatar
    Join Date
    Nov 2002
    Location
    India
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks ... work done .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •