Conversation
Notices
-
Why to browsers display elements differently with <!DOCTYPE html> vs <!DOCTYPE xhtml>? !html !css !lazyweb !firefox
-
Oh, yep! That's what's happening. Do you know what Firefox's default mode is?
-
@jacobwb depends on the specifics. They are different standards, so things are slightly different.
-
@jacobwb I'm pretty sure that xhtml's doctype is still html.
-
A DOCTYPE uses the root element of the document as its first parameter. There isn't an <xhtml> element; the browser doesn't know what to do.
-
@jacobwb Though, as a warning, HTML5 doesn't follow these old SGML semantics. It's just that the browsers do.
-