1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

quotes around attribute values are optional again

Discussion in 'HTML & Website Design' started by deathshadow, Jan 17, 2023.

  1. #1
    deathshadow, Jan 17, 2023 IP
    sarahk likes this.
  2. sepoint

    sepoint Greenhorn

    Messages:
    71
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #2
    I think it's bad tone. Maybe not all browsers will support it.
    In the future I will write as usual

    <header id='top'>
     
    sepoint, Jan 22, 2023 IP
  3. c1lonewolf

    c1lonewolf Member

    Messages:
    57
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    33
    #3
    maybe it was to keep quotation marks from having to be modified for use in other coding languages
    <div class="myclass">
    output += "<div class=\"myclass\">";
    output += '<div class="myclass">';
    etc.
     
    c1lonewolf, Jan 24, 2023 IP
  4. laci272

    laci272 Well-Known Member

    Messages:
    163
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #4
    I think it was always valid, the problems start with class="one two three". I guess it's just better practice to have double quotes for code readability. I have to add quotes to class and style, so it's easier to read , especially for code highlighters?:)
     
    laci272, Feb 15, 2023 IP