The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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.

    # 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.

    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed