I have this HTML document that started with
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
and contained a
<link href="https://somewhe.re/path/to/file.css" type="text/css" rel="stylesheet" media="screen" />
The content of the linked CSS file didn't seem to have any effect on the rendering of the HTML document, however. But when I downloaded the CSS file and referenced it locally (that is with a href="../css/file.css"
), it worked as expected.
That was frustrating at best and I tried everything I could imagine to solve the "problem", but I couldn't reference the file on the server via HTTPS. Yet, when I changed the <!DOCTYPE...>
to a simple <!DOCTYPE>
it worked. I didn't expect that. Although it works now, I'd still like to know what's going on here.
Edit: The CSS' URL is https://raw.github.com/golovko/Fixed-Header-Table/master/css/defaultTheme.css
.