Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts

    is it semantically sensible to put quotation marks inside quotations

    I mean like <q>&quot;here is a quotation&quot;</q>

    Visually it looks nicer, but maybe it's not quite right - because the <q> already implies the quotation marks. Maybe something like

    <i>&quot;</i><q>here is a quotation</q><i>&quot;</i>

    would be better - visually the same, but makes more sense semantically ..

    Any thoughts on this, or HTML semantics generally?
    Last edited by brothercake; 01-22-2003 at 05:45 PM.

  • #2
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    visually, <q> means nothing, i say place the quotation marks inside the tag, i would only use the tag for CSS purposes.
    i dont think " would matter, although its somewhat redundant

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ames, IA, USA
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or you could define a style for the <q> tag:

    q { quotes: '"' '"' "'" "'"; }
    Need more emoticons?
    Visit Catman's Private Stock

  • #4
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh yea i forgot about that one
    it supports before and after pseudo's so you could say ....
    this is all very new i believe

    q:before {content:open-quote;}
    q:after {content:close-quote;}

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Originally posted by cg9com
    oh yea i forgot about that one
    it supports before and after pseudo's so you could say ....
    this is all very new i believe

    q:before {contentpen-quote;}
    q:after {content:close-quote;}
    Not any newer than the rest of CSS2.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well what I have is q styled the same as italics, so its visually the same but semantically different

    .. but Lynx (and so I'm guessing others) automatically parses <q> elements and create quotation marks - end result is two pairs either end!

    But there's some interesting answers here -

    q { quotes: '"' '"' "'" "'"; }
    q:before {content:open-quote;}
    q:after {content:close-quote;}

    I've never heard of "quotes" or "content" as properties either - what's kind of parameters do they tale ?

    I've never heard of pseduo-classes either (god I feel like there's much of this stuff I don't know about ... this is what happens when you spend 2 years maintaing a commercial API at the expense of the rest of your life ... )

    I shall have to investigate all this; thanks for the leads :thumbsup:
    Last edited by brothercake; 01-23-2003 at 02:26 AM.

  • #7
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    content:text|url(...)|open-quote|close-quote|

    i think thats all of them, before and after are the only pseudos in the <q> i believe ...

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Specs say: quotes!

    According to the W3C HTML 4.01 Recommendation,
    Visual user agents must ensure that the content of the Q element is rendered with delimiting quotation marks. Authors should not put quotation marks at the beginning and end of the content of a Q element.
    see Quotations: The BLOCKQUOTE and Q elements.
    It says UAs should render quotes, which doesn't mean that they actually do. Sounds like another great opportunity for browser hacks...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Specs say: quotes!

    Originally posted by ronaldb66
    Sounds like another great opportunity for browser hacks...
    Oh wonderful ... just what I want! I think some testing is in order - providing the majority of browsers don't already add the markes, then the pseudo class thing will work inside @media groups (to block out ns4). otherwise I'll just leave it ...

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmm ... opera7 and mozilla add the marks automatically ... but ie6 doesn't ... and it doesn't seem to support the pseudo-class either ... why am I not surprised by this ...

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I believe the intention of the Q tag was to provide a language-independent way of rendering quotations. For example, in English you can use the " character (or alternatively, the open and close quote characters shaped kind of like commas) while French uses guillemets (&#171; and &#187; ) and German uses high and low quote characters (“ and „ ).

  • #12
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    hmm ... opera7 and mozilla add the marks automatically ... but ie6 doesn't ... and it doesn't seem to support the pseudo-class either ... why am I not surprised by this ...
    because its IE and they take longer than everyone else.
    theres alot of things i would do, but never could because IE doesnt support it, and lets face it, if IE doesnt support it, over half of internet users wont see it and/or get errors

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by BrainJar
    I believe the intention of the Q tag was to provide a language-independent way of rendering quotations ...
    Yeah that makes a lot of sense; clearly the right thing to do then is not put marks inside the Q, and just don't worry that IE doesn't render it correctly - the italics + context will be enough that it's obvious what it is.


  •  

    Posting Permissions

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