Grow your CSS skills. Land your dream job.

labeling close tags

  • # October 27, 2009 at 9:42 pm

    I’m a big fan of labeling my close tags, especially in large multi-include php sites, usually with a simple html comment </div><!– END xxx –>.
    However I have just noticed that including words in my closing tag doesnt seem to break anything… </div container>
    Can anything go wrong with this? or is it, for any reason, illadvised?
    Not a css question, I’m sorry, but thanks for your help.
    Daniel.

    # October 27, 2009 at 11:03 pm

    I’ve never thought about doing that. Personally, its poor syntax and just dirty code doing that. Also, it may cause an issue down the road for future browsers.

    That’s the only issue i can see off the bat.

    Rob
    # October 28, 2009 at 6:31 am

    yea you are dirtying your tags and it wont validate – best to stick with <!– normal methods –> :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".