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 3 of 3

Thread: "" or not ""

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts

    "" or not ""

    I've noticed some use " " in their html and some don't. For example...

    <table width=100 cellspacing=0 cellpadding=3>
    <!-----other code-----!>
    </table>


    I use " " wherever I specify something, I always assumed that was "correct". Am I wrong?
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,453
    Thanks
    1
    Thanked 21 Times in 19 Posts
    I think HTML 4.01 requires quotes on attribute values. I'm not sure.

    Quotes are preferable, though. In XHTML, they are required.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Proper HTML requires the use of double quote marks around the value of all parameters. Defective browser implementations have allowed sloppy HTML to get away without the double quotes but any good validator like HTML Tidy will point out any such code as incorrect.


  •  

    Posting Permissions

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