CSS | quotes Property

This property is used to specify the quotation mark for quotations used in the sentence.

Syntax:

quotes: none|string;

Property values:

  • none: It is the default value. It will not produce any quotations mark.
    Syntax:

    quotes:none;

    Example:

    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <!DOCTYPE html>
    <html>
        <head>
            <title>
                CSS | quotes Property
            </title>
            <style>
                #geeks {
                    quotes:none;
                }
            </style>
        </head>
        <body>
            <center>
            <h1 style="color:green;">GeeksForGeeks</h1>
            <h2 style="color:green;">quotes:none;</h2>
            <p><q id="geeks">geeksforgeeks.</q></p>
            </center>
        </body>
    </html>                    

    chevron_right

    
    

    Output:

  • string: This property is used to specify what type of quotation mark should be used in the sentence. The first two values indicate the first level of the Quotation mark. The second two values indicate the second level of the quotation mark.

    Syntax:

    quotes:string;

    Example:

    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <!DOCTYPE html>
    <html>
        <head>
            <title>
                CSS | quotes Property
            </title>
            <style>
                #geeks {
                    quotes:'‹' '›';
                }
                #gfg {
                    quotes:'«' '»';
                }
                #sudo {
                    quotes:'‹' '›' '«' '»' ;}
                #g {
                    quotes:'‘' '’' ;}
                #f {
                    quotes:'”' '„';
                }
                #for {
                    quotes:'\2039' '\203A';
                }
                #data {
                    quotes:'\''00AB'
                           '\00BB';
                }
                #q {
                    quotes:'\2039' '\203A' 
                           '\00AB' 
                           '\00BB';
                }
                #google {
                    quotes:'\2018' '\2019';
                }
                #mark{
                    quotes:'\201D' '\201E';}
                h4 {
                    color:green;
                }
                  
            </style>
        </head>
        <body>
            <center>
                <h1 style="color:green;">GeeksForGeeks</h1>
                <h2 style="color:green;">quotes:string;</h2>
                <h4>
                    <p><q id="geeks">geeksforgeeks.</q></p>
                    <p><q id="gfg">geeksforgeeks.</q></p>
                    <p><q id="sudo">geeksforgeeks.</q></p>
                    <p><q id="q">geeksforgeeks.</q></p>
                    <p><q id="f">geeksforgeeks.</q></p>
                    <p><q id="for">geeksforgeeks.</q></p>
                    <p><q id="data">geeksforgeeks.</q></p>
                    <p><q id="google">geeksforgeeks.</q></p>
                    <p><q id="mark">geeksforgeeks.</q></p>
                </h4>
            </center>
        </body>
    </html>                    

    chevron_right

    
    

    Output:

Supported Browsers: The browsers supporeted by quotes Property are listed below:

  • Google Chrome 11.0
  • Internet Explorer 8.0
  • Firefox 1.5
  • Opera 4.0
  • Safari 5.1


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.