SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,764
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Punctuation in Meta Content tag?

    Is the question mark below allowable...

    Code HTML4Strict:
    <meta name="description"
    	content="Did your plans change?  Learn about our Cancellation Policy.">


    Debbie

  2. #2
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I can't find anything that says a question mark isn't legitimate.

  3. #3
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    Is the question mark below allowable...

    Code HTML4Strict:
    <meta name="description"
    	content="Did your plans change?  Learn about our Cancellation Policy.">
    No reason why not - any characters within the charset you've defined can be used, and character entities should be used for any others (including &quot; if you need it).

  4. #4
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    META in HTML 4.01

    content CDATA #REQUIRED -- associated information --
    CDATA in HTML 4.01

    CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows:
    Replace character entities with characters,
    Ignore line feeds,
    Replace each carriage return or tab with a single space.
    CDATA is the same as normal content text in html -- so anything you can use on your content you can put into your CONTENT attribute.


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
  •