Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:38:01+00:00 2026-06-03T01:38:01+00:00

W3Schools shows this example for CSS quotes property: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

  • 0

W3Schools shows this example for CSS quotes property:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<style type="text/css">
q:lang(en)
{
quotes: "«" "»" "'" "'";
}
</style>
</head>
<body>

<p><q>This is a <q>big</q> quote.</q></p>
<p><b>Note:</b> IE8 supports the quotes property only if a !DOCTYPE is specified.</p>
</body>
</html>

My doubt is, can the quotes property be used for any element other than <blockquote> and <q>? (I would like to use it to show links distinctly in my print stylesheet.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:38:03+00:00Added an answer on June 3, 2026 at 1:38 am

    This is the official W3C page: http://www.w3.org/TR/CSS21/generate.html#quotes-specify

    While the quotes property can be applied to all elements, the <q> element is the only element that has support for it – by default.
    Example:

    q, span {quotes: "«" "»" "'" "'";}
    

     

    <span>Just a span</span>
    <q>and a q</q>
    

    As you can see (in this jsFiddle), only the q gets the quotes.

    However, you can use another style property, content, by which you can tell any element you want to use those quotes!
    Example:

    q, span {quotes: "«" "»" "'" "'";}
    span:before {content:open-quote;}
    span:after {content:close-quote;}
    

     

    <span>Just a span</span>
    <q>and a q</q>
    

    and you’ll see (in this jsFiddle) that the span also gets the quote marks now.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the detector: http://w3schools.com/js/tryit.asp?filename=try_nav_all In Chrome, Firefox, Safari and Netscape it always shows
I am using this simple code http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert This shows me alert box, but when
in the page http://www.w3schools.com/CSS/css_text.asp we have: For W3C compliant CSS: If you define the
http://www.w3schools.com/dtd/dtd_elements.asp So I'm looking at this and at the children section it states that
I am looking at this script from W3schools.com (Ajax, PHP and Mysql) http://www.w3schools.com/php/php_ajax_database.asp <html>
ajax tutorial on w3school at http://www.w3schools.com/ajax/ajax_database.asp In this function (function GetXmlHttpObject()), it creates a
This example is taken from w3schools . CREATE TABLE Persons ( P_Id int NOT
I have an url like this: http://www.w3schools.com/PHP/func_string_str_split.asp I want to split that url to
I'm using the W3 Schools example: http://www.w3schools.com/PHP/php_ajax_database.asp to display a table of database data
I am doing something like this- http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_video_js_prop but I want to replace the buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.