Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Diffrence between ' and "

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 331
    Comment on it

    Both the ' and " are same and does same function but it's just the coding standard followed by coders

    Using double quotes for HTML

    i.e.

    <div class="colorFont"></div>
    

    Using single quotes for JavaScript

    i.e.

    $('#container').addClass('colorFont');
    $('<div class="colorFont2></div>');
    

    It's just level of use " as a top-tier and ' as a second tier

    <a href="#" OnClick="Alert('Clicked!');">Testing Blog</a>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: