I encountered this page https://www.google.com/accounts/ServiceLogin, a Google service login page that (beyond just omitting a doctype), contains 6 instances of </img>
For example,
<img src="https://www.google.com/accounts/google_transparent.gif"
alt="Google">
</img>
Why would they ever do that? What benefit/functionality/grandfathering do they possibly achieve?
Anything I've ever read about HTML and XHTML has made it pretty unequovical:
In HTML 4.01 and prior, <img>
tags are never to be closed ( <img src="img.gif" alt="text" >
).
In XHTML, <img>
tags are to be closed using self-closing syntax ( <img src='img.gif' alt="text" />
)
In HTML5, (my understanding is that) either syntax (open or self-closed) is acceptable, but still never </img>
.