cybervigilante — 2012-07-02T22:33:52-04:00 — #1
Even with indenting, keeping track of nested divs can drive you blind. I was thinking of putting the div id in the end div as a property name. Seems to me it should be legal, but will some browser (probably IE) choke on it? Since there isn't really a property I don't list it since that saves typing, and since it's a property name I don't have to type quotes. I imagine this would throw an error on XHTML, but I avoid that anyway.
ralphm — 2012-07-02T22:36:39-04:00 — #2
It's just asking for trouble, if nothing else. You could do this instead:
</div><font color='"#FF0000"'><!-- end inside --></font>
</div><font color='"#FF0000"'><!-- end container --></font>
mittineague — 2012-07-02T23:35:20-04:00 — #3
I know the W3C specs aren't the easiest reading, but my take on
Attributes for an element are expressed inside the element’s start tag.
- that's start tag, not end tag.
end tags consist of the following parts, in exactly the following order:
A "<" character.
A "/" character
The element’s tag name.
Optionally, one or more space characters.
A ">" character.
- nothing about having "extra" characters in it being OK.
system — 2014-10-07T22:37:13-04:00 — #4
This topic is now closed. New replies are no longer allowed.