3 ms·
I've seen empty values written as <tag attr1 attr2="val">data</tag> Whether that's legal or not, I don't know.
by colejohnson66 10y ago
I've seen empty values written as
<tag attr1 attr2="val">data</tag>
Whether that's legal or not, I don't know.
- oceanswave 10y agonot valid. wondering if you've seen that within HTML, where it is valid.
- colejohnson66 10y agoActually, now that you mention it, I think it's from Chrome's Inspect Element tool, but I can't check right now. I think if you wrote something like <div class="">...</div> it would display in the tool as <div class>...</div>
- kozak 10y agoChrome's Inspect Element shows you the non-serialized DOM structure, which means it's neither XML nor HTML at that point.